/** * @param string $sectionName * @param string $formName * @return Form|NULL */ public function getForm($sectionName = 'Configuration', $formName = 'form') { /** @var Form $form */ $form = $this->getStoredVariable(AbstractFormViewHelper::SCOPE, $formName, $sectionName); if (NULL !== $form && TRUE === isset($this->templatePathAndFilename)) { $form->setOption(Form::OPTION_TEMPLATEFILE, $this->templatePathAndFilename); $signature = ExtensionNamingUtility::getExtensionSignature($this->controllerContext->getRequest()->getControllerExtensionName()); $overrides = (array) $this->configurationService->getTypoScriptByPath('plugin.tx_' . $signature . '.forms.' . $form->getName()); $form->modify($overrides); } return $form; }
/** * @return ProviderInterface[] */ public function loadTypoScriptConfigurationProviderInstances() { $providerConfigurations = (array) $this->configurationService->getTypoScriptByPath('plugin.tx_flux.providers'); $providers = array(); foreach ($providerConfigurations as $name => $providerSettings) { $className = 'FluidTYPO3\\Flux\\Provider\\Provider'; if (TRUE === isset($providerSettings['className']) && TRUE === class_exists($providerSettings['className'])) { $className = $providerSettings['className']; } /** @var ProviderInterface $provider */ $provider = $this->objectManager->get($className); $provider->setName($name); $provider->loadSettings($providerSettings); $providers[$name] = $provider; } return $providers; }