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

getViewConfigurationForExtensionName() public method

Returns the plugin.tx_extsignature.view array, or a default set of paths if that array is not defined in TypoScript.
public getViewConfigurationForExtensionName ( string $extensionName ) : array | null
$extensionName string
return array | null
    public function getViewConfigurationForExtensionName($extensionName)
    {
        $signature = ExtensionNamingUtility::getExtensionSignature($extensionName);
        $defaults = (array) $this->getDefaultViewConfigurationForExtensionKey($extensionName);
        $configuration = (array) $this->getTypoScriptByPath('plugin.tx_' . $signature . '.view');
        return RecursiveArrayUtility::mergeRecursiveOverrule($defaults, $configuration);
    }

Usage Example

 /**
  * @return string
  */
 public function indexAction()
 {
     $this->view->assign('grid', $this->grid);
     $this->view->assign('row', $this->row);
     $paths = $this->configurationService->getViewConfigurationForExtensionName('flux');
     $templateRootPath = TRUE === isset($paths['templateRootPath']) ? $paths['templateRootPath'] : NULL;
     $templatePathAndFilename = ResolveUtility::resolveWidgetTemplateFileBasedOnTemplateRootPathAndEnvironment($templateRootPath);
     $this->view->setTemplatePathAndFilename($templatePathAndFilename);
 }
All Usage Examples Of FluidTYPO3\Flux\Service\FluxService::getViewConfigurationForExtensionName