You are here

final public static function Bootstrap::initialize in Express 8

Initializes the active theme.

1 call to Bootstrap::initialize()
bootstrap.theme in themes/contrib/bootstrap/bootstrap.theme
The primary PHP file for the Drupal Bootstrap base theme.

File

themes/contrib/bootstrap/src/Bootstrap.php, line 1033
Contains \Drupal\bootstrap\Bootstrap.

Class

Bootstrap
The primary class for the Drupal Bootstrap base theme.

Namespace

Drupal\bootstrap

Code

public static final function initialize() {
  static $initialized = FALSE;
  if (!$initialized) {

    // Initialize the active theme.
    $active_theme = self::getTheme();

    // Include deprecated functions.
    foreach ($active_theme
      ->getAncestry() as $ancestor) {
      if ($ancestor
        ->getSetting('include_deprecated')) {
        $files = $ancestor
          ->fileScan('/^deprecated\\.php$/');
        if ($file = reset($files)) {
          $ancestor
            ->includeOnce($file->uri, FALSE);
        }
      }
    }
    $initialized = TRUE;
  }
}