FluidTYPO3\Flux\Service\FluxService::getTypoScriptByPath PHP Method

getTypoScriptByPath() public method

Gets the value/array from global TypoScript by dotted path expression.
public getTypoScriptByPath ( string $path ) : array
$path string
return array
    public function getTypoScriptByPath($path)
    {
        $typoScript = $this->getAllTypoScript();
        return (array) ObjectAccess::getPropertyPath($typoScript, $path);
    }

Usage Example

Esempio n. 1
0
 /**
  * @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;
 }
All Usage Examples Of FluidTYPO3\Flux\Service\FluxService::getTypoScriptByPath