function public function CdnCacheTtlThemes::access
8.x-3.x CdnCacheTtlThemes.php | public CdnCacheTtlThemes::access() |
Indicates whether a setting is accessible.
Return value
\Drupal\Core\Access\AccessResultInterface The value to supply to the setting's #access property.
Overrides SettingBase::access
Class
- CdnCacheTtlThemes
- The "cdn_cache_ttl_themes" theme setting.
Namespace
Drupal\bootstrap\Plugin\Setting\Advanced\CdnSource src/Plugin/Setting/Advanced/Cdn/CdnCacheTtlThemes.php (line 39)
public function access() {
return parent::access()->andIf(AccessResultAllowed::allowedIf($this->getProvider()->supportsThemes()));
}