FluidTYPO3\Vhs\Service\AssetService::getSettings PHP Метод

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

Returns the settings used by this particular Asset during inclusion. Public access allows later inspection of the TypoScript values which were applied to the Asset.
public getSettings ( ) : array
Результат array
    public function getSettings()
    {
        if (null === static::$settingsCache) {
            $allTypoScript = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
            $settingsExist = isset($allTypoScript['plugin.']['tx_vhs.']['settings.']);
            if (false === $settingsExist) {
                // no settings exist, but don't allow a NULL value. This prevents cache clobbering.
                static::$settingsCache = [];
            } else {
                static::$settingsCache = GeneralUtility::removeDotsFromTS($allTypoScript['plugin.']['tx_vhs.']['settings.']);
            }
        }
        $settings = (array) static::$settingsCache;
        return $settings;
    }