Drupal 8  8.0.2
ThemeSettings Class Reference
Inheritance diagram for ThemeSettings:

Public Member Functions

 __construct ($theme)
 
 getTheme ()
 
 getCacheTags ()
 
- Public Member Functions inherited from ConfigBase
 getName ()
 
 setName ($name)
 
 get ($key= '')
 
 setData (array $data)
 
 set ($key, $value)
 
 clear ($key)
 
 merge (array $data_to_merge)
 
 getCacheContexts ()
 
 getCacheTags ()
 
 getCacheMaxAge ()
 
- Public Member Functions inherited from RefinableCacheableDependencyInterface
 addCacheContexts (array $cache_contexts)
 
 addCacheTags (array $cache_tags)
 
 mergeCacheMaxAge ($max_age)
 
 addCacheableDependency ($other_object)
 

Protected Attributes

 $theme
 
- Protected Attributes inherited from ConfigBase
 $name
 
 $data = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from ConfigBase
static validateName ($name)
 
- Data Fields inherited from ConfigBase
const MAX_NAME_LENGTH = 250
 
- Protected Member Functions inherited from ConfigBase
 validateKeys (array $data)
 
 castSafeStrings ($data)
 

Detailed Description

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.

See Also
theme_get_setting()

Constructor & Destructor Documentation

__construct (   $theme)

Constructs a theme settings object.

Parameters
string$themeThe name of the theme settings object being constructed.

References Drupal\theme().

Here is the call graph for this function:

Member Function Documentation

getCacheTags ( )

{The cache tags associated with this object.When this object is modified, these cache tags will be invalidated.

Returns
string[] A set of cache tags.
}

Implements CacheableDependencyInterface.

getTheme ( )

Returns the theme of this theme settings object.

Returns
string The theme of this theme settings object.

The documentation for this class was generated from the following file: