You are here

public function Theme::settings in Express 8

Retrieves the theme settings instance.

Return value

\Drupal\bootstrap\ThemeSettings All settings.

File

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

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Code

public function settings() {
  static $themes = [];
  $name = $this
    ->getName();
  if (!isset($themes[$name])) {
    $themes[$name] = new ThemeSettings($this, $this->themeHandler);
  }
  return $themes[$name];
}