You are here

public function Theme::subthemeOf in Express 8

Determines whether or not a theme is a sub-theme of another.

Parameters

string|\Drupal\bootstrap\Theme $theme: The name or theme Extension object to check.

Return value

bool TRUE or FALSE

1 call to Theme::subthemeOf()
Theme::__construct in themes/contrib/bootstrap/src/Theme.php
Theme constructor.

File

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

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Code

public function subthemeOf($theme) {
  return (string) $theme === $this
    ->getName() || in_array($theme, array_keys(self::getAncestry()));
}