You are here

public function Theme::setSetting in Express 8

Sets a value for a theme setting.

Parameters

string $name: Name of the theme setting.

mixed $value: Value to associate with the theme setting.

2 calls to Theme::setSetting()
Theme::getPendingUpdates in themes/contrib/bootstrap/src/Theme.php
Retrieves pending updates for the theme.
Theme::install in themes/contrib/bootstrap/src/Theme.php
Installs a Bootstrap based theme.

File

themes/contrib/bootstrap/src/Theme.php, line 734
Contains \Drupal\bootstrap.

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Code

public function setSetting($name, $value) {
  $this
    ->settings()
    ->set($name, $value)
    ->save();
}