public function stripB3NonPublished($pages)
    {
        foreach ($pages['_items'] as $index => $page) {
            if ($page['isBuilderThreePage'] && !$page['isBuilderThreePublished']) {
                unset($pages['_items'][$index]);
            }
        }

        return $pages;
    }
public function stripB3NonPublished($pages)
    {
        foreach ($pages['_items'] as $index => $page) {
            if ($page['isBuilderThreePage'] && !$page['isBuilderThreePublished']) {
                unset($pages['_items'][$index]);
            }
        }

        return $pages;
    }
public function stripB3NonPublished ( $ pages ) { foreach ( $ pages [ '_items' ] as $ index => $ page ) { if ( $ page [ 'isBuilderThreePage' ] && ! $ page [ 'isBuilderThreePublished' ] ) { unset ( $ pages [ '_items' ] [ $ index ] ) ; } } return $ pages ; }
Remove non published B3 pages

@param mixed $pages

@return mixed
Remove non published B3 pages