Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects

[OEL-1255] OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme

Merged Francesco SARDARA requested to merge OEL-1280 into EPIC-OEL-1255-migrate-paragraphs

Created by: abel-santos-corral

OEL-1280

This is linked to PR of oe_bootstrap_paragraph: PR-201

(!) Before merging we have to change the temporal release of oe_bootstrap_theme.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Francesco SARDARA changed title from OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme to [OEL-1255] OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme

    changed title from OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme to [OEL-1255] OEL-1280: Copy and rename paragraph submodule from oe_bootstrap_theme

  • Francesco SARDARA
  • Francesco SARDARA
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit 5bb16618
  • 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 {
  • Francesco SARDARA
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit ded84a63
  • 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
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit ded84a63
  • 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
  • Francesco SARDARA
  • Francesco SARDARA
    Francesco SARDARA @brummbar started a thread on commit ded84a63
  • 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',
    • Created by: drishu

      please sort this list, and I see 'field.field.paragraph.oe_social_media_follow.field_oe_social_media_variant.yml' is missing ?

  • Francesco SARDARA
  • Francesco SARDARA mentioned in merge request !201 (merged)

    mentioned in merge request !201 (merged)

  • added epic label

  • Created by: drishu

    Review: Approved

  • Created by: donquixote

    Review: Approved

  • Merged by: donquixote at 2022-03-17 19:17:18 UTC

  • merged manually

  • Please register or sign in to reply
    Loading