src/Sulu/Bundle/PageBundle/Content/Structure/ExcerptStructureExtension.php
private function getExcerptStructure($locale = null)
    {
        if (null === $locale) {
            $locale = $this->languageCode;
        }

        $excerptStructure = $this->structureManager->getStructure(self::EXCERPT_EXTENSION_NAME);
        $excerptStructure->setLanguageCode($locale);

        return $excerptStructure;
    }
private function getExcerptStructure($locale = null)
    {
        if (null === $locale) {
            $locale = $this->languageCode;
        }

        $excerptStructure = $this->structureManager->getStructure(self::EXCERPT_EXTENSION_NAME);
        $excerptStructure->setLanguageCode($locale);

        return $excerptStructure;
    }
private function getExcerptStructure ( $ locale = null ) { if ( null === $ locale ) { $ locale = $ this -> languageCode ; } $ excerptStructure = $ this -> structureManager -> getStructure ( self :: EXCERPT_EXTENSION_NAME ) ; $ excerptStructure -> setLanguageCode ( $ locale ) ; return $ excerptStructure ; }
Returns and caches excerpt-structure.

@param string $locale

@return StructureInterface
Returns and caches excerpt - structure .