function protected function Theme::install

8.x-3.x Theme.php protected Theme::install()

Installs a Bootstrap based theme.

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Source src/Theme.php (line 673)

protected function install() {
  // Immediately return if theme is not Bootstrap based.
  if (!$this->isBootstrap()) {
    return;
  }

  $schemas = [];
  foreach ($this->getAncestry() as $ancestor) {
    $schemas[$ancestor->getName()] = $ancestor->getUpdateManager()->getLatestSchema();
  }
  $this->setSetting('schemas', $schemas);
}