FluidTYPO3\Fluidcontent\Service\ConfigurationService::getContentConfiguration PHP Метод

getContentConfiguration() публичный Метод

Get definitions of paths for FCEs defined in TypoScript
public getContentConfiguration ( string $extensionName = NULL ) : array
$extensionName string
Результат array
    public function getContentConfiguration($extensionName = NULL)
    {
        if (NULL !== $extensionName) {
            return $this->getViewConfigurationForExtensionName($extensionName);
        }
        $registeredExtensionKeys = (array) Core::getRegisteredProviderExtensionKeys('Content');
        $configuration = array();
        foreach ($registeredExtensionKeys as $registeredExtensionKey) {
            $configuration[$registeredExtensionKey] = $this->getContentConfiguration($registeredExtensionKey);
        }
        return $configuration;
    }

Usage Example

Пример #1
0
 /**
  * @param array $row
  * @return array
  */
 public function getTemplatePaths(array $row)
 {
     $extensionName = $this->getExtensionKey($row);
     $paths = $this->configurationService->getContentConfiguration($extensionName);
     if (TRUE === is_array($paths) && FALSE === empty($paths)) {
         $paths = PathUtility::translatePath($paths);
     }
     return $paths;
 }