Skip to content

Commit

Permalink
OEL-1204: Fix coding standards for lower deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
brummbar committed Feb 23, 2022
1 parent 234be4f commit 55e806c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 55e806c

Please sign in to comment.