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