class Bootstrap

The primary class for the Drupal Bootstrap base theme.

Provides many helper methods.

Hierarchy

Expanded class hierarchy of Bootstrap

Related topics

Namespace

Drupal\bootstrap

Members

Contains filters are case sensitive
Name Modifiers Type Description
Bootstrap::$messenger protected static property The Messenger service, if it exists.
Bootstrap::$renderer protected static property The Renderer service.
Bootstrap::$themeRegistry protected static property The Theme Registry service.
Bootstrap::$twig protected static property The Twig service.
Bootstrap::addCallback public static function Adds a callback to an array.
Bootstrap::alter public static function Manages theme alter hooks as classes and allows sub-themes to sub-class.
Bootstrap::apiSearchUrl public static function Returns a documentation search URL for a given query.
Bootstrap::autoloadFixInclude public static function Returns the autoload fix include path.
Bootstrap::CACHE_TAG constant Tag used to invalidate caches.
Bootstrap::CALLBACK_APPEND constant Append a callback.
Bootstrap::CALLBACK_PREPEND constant Prepend a callback.
Bootstrap::CALLBACK_REPLACE_APPEND constant Replace a callback or append it if not found.
Bootstrap::CALLBACK_REPLACE_PREPEND constant Replace a callback or prepend it if not found.
Bootstrap::checkUrlIsReachable public static function Checks whether a specific URL is reachable.
Bootstrap::cssClassFromString public static function Matches a Bootstrap class based on a string value.
Bootstrap::deprecated public static function Logs and displays a warning about a deprecated function/method being used.
Bootstrap::extraVariables public static function Provides additional variables to be used in elements and templates.
Bootstrap::FRAMEWORK_HOMEPAGE constant The Bootstrap Framework documentation site.
Bootstrap::FRAMEWORK_REPOSITORY constant The Bootstrap Framework repository.
Bootstrap::FRAMEWORK_VERSION constant The current supported Bootstrap Framework version.
Bootstrap::getTheme public static function Retrieves a theme instance of \Drupal\bootstrap.
Bootstrap::getThemeHandler public static function Retrieves the theme handler instance.
Bootstrap::getThemeHooks public static function Returns the theme hook definition information.
Bootstrap::glyphicon public static function Returns a specific Bootstrap Glyphicon.
Bootstrap::glyphiconFromString public static function Matches a Bootstrap Glyphicon based on a string value.
Bootstrap::glyphicons public static function Returns a list of available Bootstrap Framework Glyphicons.
Bootstrap::hasIsFrontCacheContext public static function Determines if the "cache_context.url.path.is_front" service exists.
Bootstrap::initialize final public static function Initializes the active theme.
Bootstrap::isAdmin public static function Checks whether a user is an administrator.
Bootstrap::isFront public static function Determines if the current path is the "front" page.
Bootstrap::message Deprecated public static function Wrapper to use new Messenger service or the legacy procedural function.
Bootstrap::preprocess public static function Preprocess theme hook variables.
Bootstrap::PROJECT_BRANCH constant The project branch.
Bootstrap::PROJECT_DOCUMENTATION constant The Drupal Bootstrap documentation site.
Bootstrap::PROJECT_PAGE constant The Drupal Bootstrap project page.
Bootstrap::putContents public static function Helper function for writing data to the file system.
Bootstrap::renderCustomTemplate public static function Renders a custom Twig template not registered in the theme system.
Bootstrap::renderer public static function Retrieves the Renderer service.
Bootstrap::request public static function Retrieves a response from a URL, using cached response if available.
Bootstrap::themeRegistry public static function Retrieves the Theme Registry service.
Bootstrap::toString public static function Ensures a value is typecast to a string, rendering an array if necessary.
Bootstrap::twig public static function Retrieves the Twig service.