function bootstrap_paragraphs_update_8203 in Bootstrap Paragraphs 8.2
Updates Accordion View Display.
File
- ./
bootstrap_paragraphs.install, line 191 - Install, uninstall and update hooks for Bootstrap Paragraphs module.
Code
function bootstrap_paragraphs_update_8203() {
// Updates Accordian View display config.
bootstrap_paragraphs_update_entity_from_yml('core.entity_view_display.paragraph.bp_accordion.default', 'entity_view_display', 'paragraph.bp_accordion.default', [
'bp_background' => 'content.bp_background',
'bp_width' => 'content.bp_width',
'bp_accordion_expand' => 'content.bp_accordion_expand',
'bp_show_indicators' => 'content.bp_show_indicators',
'bp_accordion_section' => 'content.bp_accordion_section',
]);
// Updates Accordian Section View display config.
bootstrap_paragraphs_update_entity_from_yml('core.entity_view_display.paragraph.bp_accordion_section.default', 'entity_view_display', 'paragraph.bp_accordion_section.default', [
'bp_show_button' => 'content.bp_show_button',
'bp_accordion_section_title' => 'content.bp_accordion_section_title',
'bp_accordion_section_body' => 'content.bp_accordion_section_body',
]);
// Send message to updater.
$message = t('Adds update to Accordion Section and Accordion View Display');
return $message;
}