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