code/ContentElement.php
public function getSiblings($active = '1')
    {
        $stage = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_live_stage();
        $results = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_by_stage(
            \ContentElement::class,
            $stage
            , [
            'Active' => $active
        ], [
            'Sort' => 'ASC'
        ]);

        return $results;
    }
public function getSiblings($active = '1')
    {
        $stage = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_live_stage();
        $results = \Nblum\FlexibleContent\FlexibleContentVersionedDataObject::get_by_stage(
            \ContentElement::class,
            $stage
            , [
            'Active' => $active
        ], [
            'Sort' => 'ASC'
        ]);

        return $results;
    }
public function getSiblings ( $ active = '1' ) { $ stage = \ Nblum \ FlexibleContent \ FlexibleContentVersionedDataObject :: get_live_stage ( ) ; $ results = \ Nblum \ FlexibleContent \ FlexibleContentVersionedDataObject :: get_by_stage ( \ ContentElement :: class , $ stage , [ 'Active' => $ active ] , [ 'Sort' => 'ASC' ] ) ; return $ results ; }
returns all content element of the same page
@param string $active
@return DataList
returns all content element of the same page