From 02678f9b87c1d37cd3f0f4234a32cd4fa19522d3 Mon Sep 17 00:00:00 2001 From: Abel Santos <abel.santos.corral@gmail.com> Date: Wed, 16 Mar 2022 17:42:51 +0100 Subject: [PATCH] OEL-1280: Set correct function prefix at oe_whitelabel_paragraphs.module. --- .../oe_whitelabel_paragraphs.module | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module index f6e641c3..866e5865 100644 --- a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module +++ b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module @@ -29,7 +29,7 @@ use Drupal\paragraphs\Entity\Paragraph; * * Adds a bare, markup-free template suggestion to all paragraph fields. */ -function oe_whitelabel_paragraphs_theme_suggestions_field_alter(array &$suggestions, array $variables): void { +function oe_whitelabel_paragraphs_paragraphs_theme_suggestions_field_alter(array &$suggestions, array $variables): void { $element = $variables['element']; // Do not output field labels and wrapping markup for paragraph fields. @@ -64,7 +64,7 @@ function oe_whitelabel_paragraphs_preprocess_paragraph__oe_links_block(array &$v /** * Implements hook_preprocess_paragraph() for oe_social_media_follow paragraph. */ -function oe_whitelabel_preprocess_paragraph__oe_social_media_follow(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_social_media_follow(array &$variables): void { /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; $variables['orientation'] = $paragraph->get('field_oe_social_media_variant')->value; @@ -95,7 +95,7 @@ function oe_whitelabel_preprocess_paragraph__oe_social_media_follow(array &$vari /** * Implements hook_preprocess_paragraph__oe_accordion(). */ -function oe_whitelabel_preprocess_paragraph__oe_accordion(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_accordion(array &$variables): void { // Massage data to be compliant with OE Bootstrap Theme accordion pattern // data structure. $builder = \Drupal::entityTypeManager()->getViewBuilder('paragraph'); @@ -114,7 +114,7 @@ function oe_whitelabel_preprocess_paragraph__oe_accordion(array &$variables): vo /** * Implements hook_preprocess_paragraph() for paragraph--oe-text-feature-media.html.twig. */ -function oe_whitelabel_preprocess_paragraph__oe_text_feature_media(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_text_feature_media(array &$variables): void { /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; @@ -191,7 +191,7 @@ function oe_whitelabel_preprocess_paragraph__oe_text_feature_media(array &$varia /** * Implements hook_preprocess_paragraph() for paragraph--oe-list-item-block.html.twig. */ -function oe_whitelabel_preprocess_paragraph__oe_list_item_block(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_list_item_block(array &$variables): void { /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; @@ -258,7 +258,7 @@ function oe_whitelabel_preprocess_paragraph__oe_list_item_block(array &$variable /** * Implements hook_preprocess_paragraph() for oe_banner paragraph. */ -function oe_whitelabel_preprocess_paragraph__oe_banner(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_banner(array &$variables): void { /** @var Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; $variables['title'] = $paragraph->get('field_oe_title')->value; @@ -338,7 +338,7 @@ function oe_whitelabel_preprocess_paragraph__oe_banner(array &$variables): void /** * Implements hook_preprocess_paragraph() for timeline paragraph. */ -function oe_whitelabel_preprocess_paragraph__oe_timeline(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_timeline(array &$variables): void { $paragraph = $variables['paragraph']; if (!$paragraph->get('field_oe_title')->isEmpty()) { $variables['heading'] = $paragraph->get('field_oe_title')->value; @@ -359,7 +359,7 @@ function oe_whitelabel_preprocess_paragraph__oe_timeline(array &$variables): voi /** * Implements hook_preprocess_paragraph() for paragraph--oe-content-row--variant-inpage-navigation.html.twig. */ -function oe_whitelabel_preprocess_paragraph__oe_content_row__variant_inpage_navigation(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_content_row__variant_inpage_navigation(array &$variables): void { /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; @@ -402,7 +402,7 @@ function oe_whitelabel_preprocess_paragraph__oe_content_row__variant_inpage_navi /** * Implements hook_preprocess_paragraph() for oe_description-list paragraph. */ -function oe_whitelabel_preprocess_paragraph__oe_description_list(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_description_list(array &$variables): void { /** @var Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; $variables['title'] = $paragraph->get('field_oe_title')->value ?? ''; @@ -419,7 +419,7 @@ function oe_whitelabel_preprocess_paragraph__oe_description_list(array &$variabl /** * Implements hook_preprocess_paragraph(). */ -function oe_whitelabel_preprocess_paragraph__oe_facts_figures(array &$variables): void { +function oe_whitelabel_paragraphs_preprocess_paragraph__oe_facts_figures(array &$variables): void { /** @var \Drupal\paragraphs\ParagraphInterface $paragraph */ $paragraph = $variables['paragraph']; if (!$paragraph->get('field_oe_title')->isEmpty()) { @@ -514,7 +514,7 @@ function oe_whitelabel_get_media_uri(MediaSourceInterface $source, Media $media, * @param \Drupal\media\MediaSourceInterface $source * Media source. */ -function _oe_whitelabel_featured_media_set_embedded_media(array &$variables, MediaInterface $media, CacheableMetadata $cacheability, MediaSourceInterface $source): void { +function _oe_whitelabel_paragraphs_featured_media_set_embedded_media(array &$variables, MediaInterface $media, CacheableMetadata $cacheability, MediaSourceInterface $source): void { // Default video aspect ratio is set to 16x9. $variables['ratio'] = '16x9'; -- GitLab