@@ -16,7 +16,7 @@ use Drupal\taxonomy\Entity\Term;
16
16
/**
17
17
* Implements hook_theme_suggestions_page().
18
18
*/
19
- function fds_fredericia_theme_theme_suggestions_block_alter (array &$suggestions, array $variables) {
19
+ function fds_fredericia_main_theme_theme_suggestions_block_alter (array &$suggestions, array $variables) {
20
20
if ($variables['elements']['#id'] == 'lastupdated') {
21
21
if (file_exists(__DIR__ . '/templates/block/block--lastupdated.html.twig')) {
22
22
$suggestions = ["block__lastupdated"];
@@ -27,9 +27,9 @@ function fds_fredericia_theme_theme_suggestions_block_alter(array &$suggestions,
27
27
/**
28
28
* Implements hook_preprocess_block().
29
29
*/
30
- function fds_fredericia_theme_preprocess_block (&$variables) {
30
+ function fds_fredericia_main_theme_preprocess_block (&$variables) {
31
31
32
- if ($variables['elements']['#id'] == 'fds_fredericia_theme_indholdfield ') {
32
+ if ($variables['elements']['#id'] == 'fds_fredericia_main_theme_indholdfield ') {
33
33
$node = $variables['content']['field']['#object'];
34
34
$ext_links = $node->get('field_ext_links')->getValue();
35
35
foreach( $ext_links as $ext_link) {
@@ -51,7 +51,7 @@ function fds_fredericia_theme_preprocess_block(&$variables) {
51
51
/**
52
52
* Implements hook_preprocess_page().
53
53
*/
54
- function fds_fredericia_theme_preprocess_page (array &$variables) {
54
+ function fds_fredericia_main_theme_preprocess_page (array &$variables) {
55
55
$variables['theme_settings'] = _fds_base_theme_collect_theme_settings();
56
56
$variables['theme_settings']['footer']['footer_show_latest_content'] = theme_get_setting('footer_show_latest_content');
57
57
$variables['theme_settings']['branding']['branding_toggle'] = theme_get_setting('branding_toggle');
@@ -62,14 +62,14 @@ function fds_fredericia_theme_preprocess_page(array &$variables) {
62
62
/**
63
63
* Implements hook_form_search_block_form_alter().
64
64
*/
65
- function fds_fredericia_theme_form_search_block_form_alter (&$form, FormStateInterface $form_state) {
65
+ function fds_fredericia_main_theme_form_search_block_form_alter (&$form, FormStateInterface $form_state) {
66
66
$form['keys']['#attributes']['placeholder'] = t('Hvad søger du?');
67
67
}
68
68
69
69
/**
70
70
* Implements hook_form_search_form_alter().
71
71
*/
72
- function fds_fredericia_theme_form_search_form_alter (&$form, FormStateInterface $form_state) {
72
+ function fds_fredericia_main_theme_form_search_form_alter (&$form, FormStateInterface $form_state) {
73
73
$form['basic']['label'] = [
74
74
'#type' => 'container',
75
75
'#attributes' => [
@@ -95,7 +95,7 @@ function fds_fredericia_theme_form_search_form_alter(&$form, FormStateInterface
95
95
/**
96
96
* Implements template_preprocess_swiftmailer().
97
97
*/
98
- function fds_fredericia_theme_preprocess_swiftmailer (&$variables) {
98
+ function fds_fredericia_main_theme_preprocess_swiftmailer (&$variables) {
99
99
global $base_url;
100
100
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
101
101
$theme = \Drupal::theme()->getActiveTheme();
@@ -117,7 +117,7 @@ function fds_fredericia_theme_preprocess_swiftmailer(&$variables) {
117
117
}
118
118
}
119
119
120
- function fds_fredericia_theme_preprocess_anonymous_subscriptions_notification_email (&$variables) {
120
+ function fds_fredericia_main_theme_preprocess_anonymous_subscriptions_notification_email (&$variables) {
121
121
global $base_url;
122
122
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
123
123
$theme = \Drupal::theme()->getActiveTheme();
@@ -142,7 +142,7 @@ function fds_fredericia_theme_preprocess_anonymous_subscriptions_notification_em
142
142
/**
143
143
* Implements hook_preprocess_HOOK().
144
144
*/
145
- function fds_fredericia_theme_preprocess_anonymous_subscriptions_message (array &$variables) {
145
+ function fds_fredericia_main_theme_preprocess_anonymous_subscriptions_message (array &$variables) {
146
146
global $base_url;
147
147
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
148
148
$theme = \Drupal::theme()->getActiveTheme();
@@ -172,7 +172,7 @@ function fds_fredericia_theme_preprocess_anonymous_subscriptions_message(array &
172
172
/**
173
173
* Implements hook_preprocess_term().
174
174
*/
175
- function fds_fredericia_theme_preprocess_taxonomy_term (array &$variables) {
175
+ function fds_fredericia_main_theme_preprocess_taxonomy_term (array &$variables) {
176
176
/** @var \Drupal\taxonomy\TermInterface $term */
177
177
$term = $variables['term'];
178
178
@@ -206,7 +206,7 @@ function fds_fredericia_theme_preprocess_taxonomy_term(array &$variables) {
206
206
/**
207
207
* Implements hook_preprocess_node().
208
208
*/
209
- function fds_fredericia_theme_preprocess_node (array &$variables) {
209
+ function fds_fredericia_main_theme_preprocess_node (array &$variables) {
210
210
211
211
$node = $variables['node'];
212
212
$view_mode = $variables['elements']['#view_mode'];
@@ -263,7 +263,7 @@ function fds_fredericia_theme_preprocess_node(array &$variables) {
263
263
/**
264
264
* Implements hook_preprocess_media().
265
265
*/
266
- function fds_fredericia_theme_preprocess_media (array &$variables) {
266
+ function fds_fredericia_main_theme_preprocess_media (array &$variables) {
267
267
$media = $variables['media'];
268
268
$name = $media->getName();
269
269
if (!empty($name)) {
@@ -329,7 +329,7 @@ function node2box(&$node, $showImages) {
329
329
return $refNode;
330
330
}
331
331
332
- function fds_fredericia_theme_preprocess_paragraph (&$variables) {
332
+ function fds_fredericia_main_theme_preprocess_paragraph (&$variables) {
333
333
334
334
$paragraph = $variables['paragraph'];
335
335
0 commit comments