diff --git a/composer.json b/composer.json index bd2c75db7..dcddc9929 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "drush/drush": "^10.3", "easyrdf/easyrdf": "1.0.0 as 0.9.2", "egulias/email-validator": "^2.1.22 || ^3.0", - "openeuropa/code-review": "~1.6", + "openeuropa/code-review": "^1.7", "openeuropa/oe_content": "^2.7.0", "openeuropa/oe_media": "^1.14", "openeuropa/oe_paragraphs": "^1.11", diff --git a/modules/oe_bootstrap_theme_helper/oe_bootstrap_theme_helper.module b/modules/oe_bootstrap_theme_helper/oe_bootstrap_theme_helper.module index 54db6e41b..0fe00f7cf 100644 --- a/modules/oe_bootstrap_theme_helper/oe_bootstrap_theme_helper.module +++ b/modules/oe_bootstrap_theme_helper/oe_bootstrap_theme_helper.module @@ -37,7 +37,9 @@ function oe_bootstrap_theme_helper_field_widget_settings_summary_alter(array &$s || ($context['widget']->getPluginId() == 'options_buttons' && $context['field_definition']->getFieldStorageDefinition()->isMultiple()) ) { $summary[] = \Drupal::translation() - ->formatPlural($context['widget']->getPluginId() === 'boolean_checkbox', 'Switch: @is_switch', 'Switches: @is_switch', ['@is_switch' => ($context['widget']->getThirdPartySetting('oe_bootstrap_theme_helper', 'switch') ? t('Yes') : t('No'))]); + ->formatPlural($context['widget']->getPluginId() === 'boolean_checkbox', 'Switch: @is_switch', 'Switches: @is_switch', [ + '@is_switch' => ($context['widget']->getThirdPartySetting('oe_bootstrap_theme_helper', 'switch') ? t('Yes') : t('No')), + ]); } } diff --git a/modules/oe_bootstrap_theme_paragraphs/oe_bootstrap_theme_paragraphs.module b/modules/oe_bootstrap_theme_paragraphs/oe_bootstrap_theme_paragraphs.module index ffd36ad7a..48b69d6d4 100644 --- a/modules/oe_bootstrap_theme_paragraphs/oe_bootstrap_theme_paragraphs.module +++ b/modules/oe_bootstrap_theme_paragraphs/oe_bootstrap_theme_paragraphs.module @@ -158,7 +158,10 @@ function oe_bootstrap_theme_preprocess_paragraph__oe_text_feature_media(array &$ } $variant = $paragraph->get('oe_paragraphs_variant')->value ?? 'default'; - $variables['text_position'] = str_replace(['_featured', '_simple'], '', $variant); + $variables['text_position'] = str_replace([ + '_featured', + '_simple', + ], '', $variant); if ($is_image) { $thumbnail = $media->get('thumbnail')->first();