/** * Retrieves the selected value(s) * * @return mixed value string or an array of strings */ protected function getSelectedValue() { $selectedValue = parent::getSelectedValue(); // set preselection from TypoScript if (empty($selectedValue)) { $controllerName = strtolower($this->controllerContext->getRequest()->getControllerName()); $cObj = $this->configurationManager->getContentObject(); $typoScript = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); $prefillTypoScript = $typoScript['plugin.']['tx_femanager.']['settings.'][$controllerName . '.']['prefill.']; $selectedValue = $cObj->cObjGetSingle($prefillTypoScript[$this->getFieldName()], $prefillTypoScript[$this->getFieldName() . '.']); } return $selectedValue; }