ThemeSettingsForm::create

public static ThemeSettingsForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servic

ThemeSettingsForm::$editableConfig

An array of configuration names that should be editable. Type: array File core/modules/system/src/Form/ThemeSettingsForm.php, line 47 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code protected $editableConfig = [];

ThemeSettingsForm::buildForm

public ThemeSettingsForm::buildForm(array $form, FormStateInterface $form_state, $theme = '') Parameters string $theme: The theme name. Overrides ConfigFormBase::buildForm File core/modules/system/src/Form/ThemeSettingsForm.php, line 101 Class ThemeSettingsForm Displays theme configuration for entire site and individual themes. Namespace Drupal\system\Form Code public function buildForm(array $form, FormStateInterface $form_state, $theme = '') { $form = parent::buildForm($form, $for

ThemeSettingsForm

Displays theme configuration for entire site and individual themes. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\system\Form\ThemeSettingsForm File core/modules/system/src/Form/ThemeSettingsForm.php, line 19 Namespace D

ThemeSettings::getCacheTags

public ThemeSettings::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides ConfigBase::getCacheTags File core/lib/Drupal/Core/Theme/ThemeSettings.php, line 48 Class ThemeSettings Provides a configuration API wrapper for runtime merged theme settings. Namespace Drupal\Core\Theme Code public function getCacheTags() { return ['rendered']; }

ThemeSettings::__construct

public ThemeSettings::__construct($theme) Constructs a theme settings object. Parameters string $theme: The name of the theme settings object being constructed. File core/lib/Drupal/Core/Theme/ThemeSettings.php, line 31 Class ThemeSettings Provides a configuration API wrapper for runtime merged theme settings. Namespace Drupal\Core\Theme Code public function __construct($theme) { $this->theme = $theme; }

ThemeSettings::getTheme

public ThemeSettings::getTheme() Returns the theme of this theme settings object. Return value string The theme of this theme settings object. File core/lib/Drupal/Core/Theme/ThemeSettings.php, line 41 Class ThemeSettings Provides a configuration API wrapper for runtime merged theme settings. Namespace Drupal\Core\Theme Code public function getTheme() { return $this->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, DependencySerializationTraitclass \Drupal\Core\Theme\ThemeSettings See also theme_get_setting() File core/lib/Drupal/Core/Theme

ThemeSettings::$theme

The theme of the theme settings object. Type: string File core/lib/Drupal/Core/Theme/ThemeSettings.php, line 23 Class ThemeSettings Provides a configuration API wrapper for runtime merged theme settings. Namespace Drupal\Core\Theme Code protected $theme;

ThemeRegistry::updateCache

protected ThemeRegistry::updateCache($lock = TRUE) Writes a value to the persistent cache immediately. Parameters bool $lock: (optional) Whether to acquire a lock before writing to cache. Defaults to TRUE. Overrides CacheCollector::updateCache File core/lib/Drupal/Core/Utility/ThemeRegistry.php, line 134 Class ThemeRegistry Builds the run-time theme registry. Namespace Drupal\Core\Utility Code protected function updateCache($lock = TRUE) { if (!$this->persistable) { return;