public static function Bootstrap::getThemeHooks in Express 8
Returns the theme hook definition information.
This base-theme's custom theme hook implementations. Never define "path" as this is automatically detected and added.
See also
\Drupal\bootstrap\Plugin\Alter\ThemeRegistry::alter()
bootstrap_theme_registry_alter()
1 call to Bootstrap::getThemeHooks()
- bootstrap_theme in themes/
contrib/ bootstrap/ bootstrap.theme
File
- themes/
contrib/ bootstrap/ src/ Bootstrap.php, line 510 - Contains \Drupal\bootstrap\Bootstrap.
Class
- Bootstrap
- The primary class for the Drupal Bootstrap base theme.
Namespace
Drupal\bootstrapCode
public static function getThemeHooks() {
$hooks['bootstrap_carousel'] = [
'variables' => [
'attributes' => [],
'controls' => TRUE,
'id' => NULL,
'indicators' => TRUE,
'interval' => 5000,
'pause' => 'hover',
'slides' => [],
'start_index' => 0,
'wrap' => TRUE,
],
];
$hooks['bootstrap_dropdown'] = [
'variables' => [
'alignment' => 'down',
'attributes' => [],
'items' => [],
'split' => FALSE,
'toggle' => NULL,
],
];
$hooks['bootstrap_modal'] = [
'variables' => [
'attributes' => [],
'body' => '',
'body_attributes' => [],
'close_button' => TRUE,
'content_attributes' => [],
'description' => NULL,
'description_display' => 'before',
'dialog_attributes' => [],
'footer' => '',
'footer_attributes' => [],
'header_attributes' => [],
'id' => NULL,
'size' => NULL,
'title' => '',
'title_attributes' => [],
],
];
$hooks['bootstrap_panel'] = [
'variables' => [
'attributes' => [],
'body' => [],
'body_attributes' => [],
'collapsible' => FALSE,
'collapsed' => FALSE,
'description' => NULL,
'description_display' => 'before',
'footer' => NULL,
'footer_attributes' => [],
'heading' => NULL,
'heading_attributes' => [],
'id' => NULL,
'panel_type' => 'default',
],
];
return $hooks;
}