-
Notifications
You must be signed in to change notification settings - Fork 5
/
bootstrap.theme
149 lines (133 loc) · 4.03 KB
/
bootstrap.theme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
/**
* @file
* The primary PHP file for the Drupal Bootstrap base theme.
*
* This file should only contain light helper functions and point to stubs in
* other files containing more complex functions.
*
* The stubs should point to files within the `./includes` directory named after
* the function itself minus the theme prefix. If the stub contains a group of
* functions, then please organize them so they are related in some way and name
* the file appropriately to at least hint at what it contains.
*
* All [pre]process functions, theme functions and template files lives inside
* the `./templates` directory. This is a highly automated and complex system
* designed to only load the necessary files when a given theme hook is invoked.
*
* Visit this project's official documentation site https://drupal-bootstrap.org
* or the markdown files inside the `./docs` directory.
*
* @see bootstrap_theme()
* @see \Drupal\bootstrap\Registry
*/
use Drupal\bootstrap\Bootstrap;
/**
* Initialize the active theme.
*/
Bootstrap::initialize();
/**
* {@inheritdoc}
*
* @see hook_bootstrap_colorize_text_alter()
*/
function bootstrap_bootstrap_colorize_text_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see hook_bootstrap_iconize_text_alter()
*/
function bootstrap_bootstrap_iconize_text_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see hook_bootstrap_layouts_class_options_alter()
*/
function bootstrap_bootstrap_layouts_class_options_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Plugin\Alter\ElementInfo::alter()
*/
function bootstrap_element_info_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Theme::alter()
*/
function bootstrap_form_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Plugin\Form\SystemThemeSettings::alterForm()
*/
function bootstrap_form_system_theme_settings_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*/
function bootstrap_js_settings_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Plugin\Alter\LibraryInfo::alter()
*/
function bootstrap_library_info_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Plugin\Alter\PageAttachments::alter()
*/
function bootstrap_page_attachments_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Bootstrap::preprocess()
*/
function bootstrap_preprocess(&$variables, $hook, $info) {
Bootstrap::preprocess($variables, $hook, $info);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Bootstrap::getInfo()
*/
function bootstrap_theme() {
return Bootstrap::getThemeHooks();
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Plugin\Alter\ThemeRegistry::alter()
*
* @todo Remove once a proper replacement for the theme.registry service can be
* created in a bootstrap_core sub-module.
*/
function bootstrap_theme_registry_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}
/**
* {@inheritdoc}
*
* @see \Drupal\bootstrap\Plugin\Alter\ThemeSuggestions::alter()
*/
function bootstrap_theme_suggestions_alter(&$data, &$context1 = NULL, &$context2 = NULL) {
Bootstrap::alter(__FUNCTION__, $data, $context1, $context2);
}