class ThemeSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 21 - Contains \Drupal\Core\Theme\ThemeSettings.
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',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigBase:: |
protected | property | The data of the configuration object. | |
ConfigBase:: |
protected | property | The name of the configuration object. | |
ConfigBase:: |
protected | function | Casts any objects that implement MarkupInterface to string. | |
ConfigBase:: |
public | function | Unsets a value in this configuration object. | 1 |
ConfigBase:: |
public | function | Gets data from this configuration object. | 1 |
ConfigBase:: |
public | function |
The cache contexts associated with this object. Overrides RefinableCacheableDependencyTrait:: |
|
ConfigBase:: |
public | function |
The maximum age for which this object may be cached. Overrides RefinableCacheableDependencyTrait:: |
|
ConfigBase:: |
public | function | Returns the name of this configuration object. | |
ConfigBase:: |
constant | The maximum length of a configuration object name. | ||
ConfigBase:: |
public | function | Merges data into a configuration object. | |
ConfigBase:: |
public | function | Sets a value in this configuration object. | 1 |
ConfigBase:: |
public | function | Replaces the data of this configuration object. | 1 |
ConfigBase:: |
public | function | Sets the name of this configuration object. | |
ConfigBase:: |
protected | function | Validates all keys in a passed in config array structure. | |
ConfigBase:: |
public static | function | Validates the configuration object name. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
RefinableCacheableDependencyTrait:: |
protected | property | Cache contexts. | |
RefinableCacheableDependencyTrait:: |
protected | property | Cache max-age. | |
RefinableCacheableDependencyTrait:: |
protected | property | Cache tags. | |
RefinableCacheableDependencyTrait:: |
public | function | 1 | |
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
RefinableCacheableDependencyTrait:: |
public | function | ||
ThemeSettings:: |
protected | property | The theme of the theme settings object. | |
ThemeSettings:: |
public | function |
The cache tags associated with this object. Overrides ConfigBase:: |
|
ThemeSettings:: |
public | function | Returns the theme of this theme settings object. | |
ThemeSettings:: |
public | function | Constructs a theme settings object. |