function public function Theme::settings

8.x-3.x Theme.php public Theme::settings()

Retrieves the theme settings instance.

Return value

\Drupal\bootstrap\ThemeSettings All settings.

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Source src/Theme.php (line 748)

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