/** * Initializes configuration object (Template method) */ protected function init() { $this->setRequiredValue('name', 'Theme name was not set! 1316764051'); $this->resolutionConfigCollection = Tx_Yag_Domain_Configuration_Image_ResolutionConfigCollectionFactory::getInstance($this->configurationBuilder, $this->settings['resolutionConfigs']); $this->setBooleanIfExistsAndNotNothing('showBreadcrumbs'); $this->setValueIfExistsAndNotNothing('includeJS'); $this->setValueIfExistsAndNotNothing('includeCSS'); $this->setValueIfExistsAndNotNothing('jsPosition'); $this->setValueIfExistsAndNotNothing('title'); if (!$this->title) { $this->title = $this->name; } if (GeneralUtility::isFirstPartOfStr($this->title, 'LLL:')) { $this->name = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($this->title, ''); } $this->setValueIfExistsAndNotNothing('description'); if (GeneralUtility::isFirstPartOfStr($this->description, 'LLL:')) { $this->description = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($this->description, ''); } if (array_key_exists('includeLibJS', $this->settings) && trim($this->settings['includeLibJS'])) { $this->includeLibJS = GeneralUtility::trimExplode(',', $this->settings['includeLibJS']); } if (array_key_exists('includeLibCSS', $this->settings) && trim($this->settings['includeLibCSS'])) { $this->includeLibCSS = GeneralUtility::trimExplode(',', $this->settings['includeLibCSS']); } }