function public static function Bootstrap::getThemeHooks

8.x-3.x Bootstrap.php public static Bootstrap::getThemeHooks()

Returns the theme hook definition information.

This base-theme's custom theme hook implementations. Never define "path" as this is automatically detected and added.

Class

Bootstrap
The primary class for the Drupal Bootstrap base theme.

Namespace

Drupal\bootstrap

Source src/Bootstrap.php (line 719)

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;
}