class ThemeSettings in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Theme/ThemeSettings.php \Drupal\Core\Theme\ThemeSettings
- 9 core/lib/Drupal/Core/Theme/ThemeSettings.php \Drupal\Core\Theme\ThemeSettings
Provides a configuration API wrapper for runtime merged theme settings.
Theme settings use configuration for base values but the runtime theme settings are calculated based on various site settings and are therefore not persisted.
Hierarchy
- class \Drupal\Core\Config\ConfigBase implements RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTrait, DependencySerializationTrait
- class \Drupal\Core\Theme\ThemeSettings
Expanded class hierarchy of ThemeSettings
See also
1 file declares its use of ThemeSettings
File
- core/
lib/ Drupal/ Core/ Theme/ ThemeSettings.php, line 16
Namespace
Drupal\Core\ThemeView source
class ThemeSettings extends ConfigBase {
/**
* The theme of the theme settings object.
*
* @var string
*/
protected $theme;
/**
* Constructs a theme settings object.
*
* @param string $theme
* The name of the theme settings object being constructed.
*/
public function __construct($theme) {
$this->theme = $theme;
}
/**
* Returns the theme of this theme settings object.
*
* @return string
* The theme of this theme settings object.
*/
public function getTheme() {
return $this->theme;
}
/**
* {@inheritdoc}
*/
public function getCacheTags() {
return [
'rendered',
];
}
}