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

Skip to content
Snippets Groups Projects
Unverified Commit 00f9e798 authored by Francesco SARDARA's avatar Francesco SARDARA
Browse files

OEL-2070: Import the gallery paragraph view mode override when the related paragraph is installed.

parent af9ce3b4
No related branches found
No related tags found
1 merge request!188OEL-2070: Style the gallery paragraph.
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.oe_gallery.field_oe_gallery_items
- field.field.paragraph.oe_gallery.field_oe_plain_text_long
- field.field.paragraph.oe_gallery.field_oe_title
- paragraphs.paragraphs_type.oe_gallery
module:
- oe_whitelabel_helper
id: paragraph.oe_gallery.default
targetEntityType: paragraph
bundle: oe_gallery
mode: default
content:
field_oe_gallery_items:
type: oe_whitelabel_helper_gallery
label: hidden
settings: { }
third_party_settings: { }
weight: 2
region: content
field_oe_plain_text_long:
type: basic_string
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
field_oe_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
......@@ -25,10 +25,26 @@ use Drupal\media\Plugin\media\Source\OEmbed;
use Drupal\media_avportal\Plugin\media\Source\MediaAvPortalPhotoSource;
use Drupal\media_avportal\Plugin\media\Source\MediaAvPortalSourceInterface;
use Drupal\media_avportal\Plugin\media\Source\MediaAvPortalVideoSource;
use Drupal\oe_bootstrap_theme\ConfigImporter;
use Drupal\oe_bootstrap_theme\ValueObject\ImageValueObject;
use Drupal\oe_media_iframe\Plugin\media\Source\Iframe;
use Drupal\paragraphs\Entity\Paragraph;
/**
* Implements hook_modules_installed().
*/
function oe_whitelabel_paragraphs_modules_installed($modules, $is_syncing) {
if ($is_syncing) {
return;
}
// Import the gallery paragraph view display override when the related
// module is installed.
if (in_array('oe_paragraphs_gallery', $modules)) {
ConfigImporter::importSingle('module', 'oe_whitelabel_paragraphs', '/config/overrides/', 'core.entity_view_display.paragraph.oe_gallery.default');
}
}
/**
* Implements hook_theme_suggestions_HOOK_alter().
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment