Bundle/PageBundle/Entity/BasePage.php
public function getWebViewChildren($excludeUnpublished = false)
    {
        $webViewChildren = [];
        foreach ($this->children as $child) {
            if (!$child instanceof BusinessTemplate) {
                $notPublished = $child->getStatus() != PageStatus::PUBLISHED;
                $scheduledDateNotReached = $child->getStatus() == PageStatus::SCHEDULED && $child->getPublishedAt() > new \DateTime();

                if ($excludeUnpublished && ($notPublished || $scheduledDateNotReached)) {
                    continue;
                }

                $webViewChildren[] = $child;
            }
        }

        return $webViewChildren;
    }
public function getWebViewChildren($excludeUnpublished = false)
    {
        $webViewChildren = [];
        foreach ($this->children as $child) {
            if (!$child instanceof BusinessTemplate) {
                $notPublished = $child->getStatus() != PageStatus::PUBLISHED;
                $scheduledDateNotReached = $child->getStatus() == PageStatus::SCHEDULED && $child->getPublishedAt() > new \DateTime();

                if ($excludeUnpublished && ($notPublished || $scheduledDateNotReached)) {
                    continue;
                }

                $webViewChildren[] = $child;
            }
        }

        return $webViewChildren;
    }
public function getWebViewChildren ( $ excludeUnpublished = false ) { $ webViewChildren = [ ] ; foreach ( $ this -> children as $ child ) { if ( ! $ child instanceof BusinessTemplate ) { $ notPublished = $ child -> getStatus ( ) != PageStatus :: PUBLISHED ; $ scheduledDateNotReached = $ child -> getStatus ( ) == PageStatus :: SCHEDULED && $ child -> getPublishedAt ( ) > new \ DateTime ( ) ; if ( $ excludeUnpublished && ( $ notPublished || $ scheduledDateNotReached ) ) { continue ; } $ webViewChildren [ ] = $ child ; } } return $ webViewChildren ; }
Get WebView children.
Exclude unpublished or not published yet if asked.

@param bool $excludeUnpublished

@return string
Get WebView children . Exclude unpublished or not published yet if asked .