[OEL-1255] OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme
Merge request reports
Activity
Filter activity
51 $variables['orientation'] = $paragraph->get('oe_bt_links_block_orientation')->value; 52 $variables['background'] = $paragraph->get('oe_bt_links_block_background')->value; 53 $variables['title'] = $paragraph->get('field_oe_text')->value ?? ''; 54 55 foreach (Element::children($variables['content']['field_oe_links']) as $index) { 56 $variables['links'][] = [ 57 'label' => $variables['content']['field_oe_links'][$index]['#title'], 58 'path' => $variables['content']['field_oe_links'][$index]['#url']->toString(), 59 ]; 60 } 61 } 62 63 /** 64 * Implements hook_preprocess_paragraph() for oe_social_media_follow paragraph. 65 */ 66 function oe_whitelabel_preprocess_paragraph__oe_social_media_follow(array &$variables): void { 1 name: OpenEuropa Whitelabel Paragraphs 2 type: module 3 description: Companion module to add support and customisations for oe_paragraphs. 4 package: OpenEuropa Whitelabel Theme 5 core_version_requirement: ^9.2 6 dependencies: 7 - oe_paragraphs:oe_paragraphs 1 name: OpenEuropa Whitelabel Paragraphs 2 type: module 3 description: Companion module to add support and customisations for oe_paragraphs. 4 package: OpenEuropa Whitelabel Theme 5 core_version_requirement: ^9.2 6 dependencies: 7 - oe_paragraphs:oe_paragraphs 8 - oe_whitelabel:oe_whitelabel_helper 9 - oe_paragraphs:oe_paragraphs_timeline 10 - oe_content:oe_content_timeline_field 11 - drupal:description_list_field 12 - oe_paragraphs:oe_paragraphs_description_list 13 config_devel: 14 install: 15 - field.field.paragraph.oe_links_block.oe_w_links_block_background 9 10 use Drupal\oe_bootstrap_theme\ConfigImporter; 11 12 /** 13 * Implements hook_install(). 14 * 15 * Customise fields for whitelabel paragraphs. 16 */ 17 function oe_whitelabel_paragraphs_install($is_syncing): void { 18 // If we are installing from config, we bail out. 19 if ($is_syncing) { 20 return; 21 } 22 23 $configs = [ 24 'core.entity_form_display.paragraph.oe_links_block.default', mentioned in merge request !201 (merged)
added epic label
Please register or sign in to reply