src/Sulu/Bundle/PageBundle/Command/ValidateWebspacesCommand.php
private function outputWebspacePageTemplates(Webspace $webspace)
    {
        $this->output->writeln('Page Templates:');

        $structures = $this->structureManager->getStructures();

        $checkedTemplates = [];

        foreach ($webspace->getDefaultTemplates() as $template) {
            $checkedTemplates[] = $template;
        }

        foreach ($structures as $structure) {
            $template = $structure->getKey();

            if (!$structure->getInternal() && !in_array($template, $checkedTemplates)) {
                $this->validatePageTemplate('page', $structure->getKey());
            }
        }
    }
private function outputWebspacePageTemplates(Webspace $webspace)
    {
        $this->output->writeln('Page Templates:');

        $structures = $this->structureManager->getStructures();

        $checkedTemplates = [];

        foreach ($webspace->getDefaultTemplates() as $template) {
            $checkedTemplates[] = $template;
        }

        foreach ($structures as $structure) {
            $template = $structure->getKey();

            if (!$structure->getInternal() && !in_array($template, $checkedTemplates)) {
                $this->validatePageTemplate('page', $structure->getKey());
            }
        }
    }
private function outputWebspacePageTemplates ( Webspace $ webspace ) { $ this -> output -> writeln ( 'Page Templates:' ) ; $ structures = $ this -> structureManager -> getStructures ( ) ; $ checkedTemplates = [ ] ; foreach ( $ webspace -> getDefaultTemplates ( ) as $ template ) { $ checkedTemplates [ ] = $ template ; } foreach ( $ structures as $ structure ) { $ template = $ structure -> getKey ( ) ; if ( ! $ structure -> getInternal ( ) && ! in_array ( $ template , $ checkedTemplates ) ) { $ this -> validatePageTemplate ( 'page' , $ structure -> getKey ( ) ) ; } } }
Output webspace page templates.

@param Webspace $webspace
Output webspace page templates .