class Theme

Defines a theme object.

Hierarchy

  • class \Drupal\bootstrap\Theme

Expanded class hierarchy of Theme

Related topics

Namespace

Drupal\bootstrap

Members

Contains filters are case sensitive
Name Modifiers Type Description
Theme::IGNORE_DEFAULT constant Ignores the following directories during file scans of a theme.
Theme::IGNORE_ASSETS constant Ignores the directories "assets", "css", "images" and "js".
Theme::IGNORE_CORE constant Ignores the directories "config", "lib" and "src".
Theme::IGNORE_DOCS constant Ignores the directories "docs" and "documentation".
Theme::IGNORE_DEV constant Ignores "bower_components", "grunt", "node_modules" and "starterkits".
Theme::IGNORE_TEMPLATES constant Ignores the directories "templates" and "theme".
Theme::install protected function Installs a Bootstrap based theme.
Theme::$theme protected property The current theme Extension object.
Theme::$themeHandler protected property Theme handler object.
Theme::$info protected property The current theme info.
Theme::$themes protected property An array of installed themes.
Theme::$name protected property The theme machine name.
Theme::$updateManager protected property The update plugin manager.
Theme::$bootstrap protected property Flag indicating if the theme is Bootstrap based.
Theme::$dev protected property Flag indicating if the theme is in "development" mode.
Theme::$livereload protected property A URL for where a livereload instance is listening, if set.
Theme::$cdnProviders protected property A list of available CDN Provider instances.
Theme::$settings protected property An array of Setting instances.
Theme::__construct public function Theme constructor.
Theme::__toString public function Returns the theme machine name.
Theme::fileScan public function Wrapper for the core file_scan_directory() function.
Theme::getAncestry public function Retrieves the full base/sub-theme ancestry of a theme.
Theme::getStorage public function Retrieves the theme's cache from the database.
Theme::getCache public function Retrieves an individual item from a theme's cache in the database.
Theme::getProvider Deprecated public function Retrieves the CDN Provider.
Theme::getProviders Deprecated public function Retrieves all CDN Providers.
Theme::getName public function Returns the machine name of the theme.
Theme::getPath public function Returns the relative path of the theme.
Theme::getSetting public function Retrieves a theme setting.
Theme::hasGlyphicons public function Determines whether or not if the theme has Bootstrap Framework Glyphicons.
Theme::includeOnce public function Includes a file from the theme.
Theme::subthemeOf public function Determines whether or not a theme is a sub-theme of another.
Theme::getInfo public function Retrieves the theme info.
Theme::removeSetting public function Removes a theme setting.
Theme::setSetting public function Sets a value for a theme setting.
Theme::getSettingPlugins Deprecated public function Retrieves the theme's setting plugin instances.
Theme::getTitle public function Retrieves the human-readable title of the theme.
Theme::settings public function Retrieves the theme settings instance.
Theme::drupalSettings public function Retrieves the theme's settings array appropriate for drupalSettings.
Theme::__sleep public function Serialization method.
Theme::__wakeup public function Unserialize method.
Theme::getPendingUpdates public function Retrieves pending updates for the theme.
Theme::getUpdateManager public function Retrieves the update plugin manager for the theme.
Theme::isBootstrap public function Indicates whether the theme is bootstrap based.
Theme::getSettingPlugin public function Retrieves a theme's setting plugin instance(s).
Theme::isDev public function Indicates whether the theme is in "development mode".
Theme::livereloadUrl public function Returns the livereload URL set, if any.
Theme::getCdnProvider public function Retrieves the set CDN Provider instance for the theme.
Theme::getCdnProviders public function Retrieves all available CDN Provider instances.