function public function Theme::subthemeOf

8.x-3.x Theme.php public Theme::subthemeOf($theme)

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

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Source src/Theme.php (line 766)

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