From 81c9e9353f295b9af02d25702046454936e3ca10 Mon Sep 17 00:00:00 2001 From: Charles Tanton <charles@parkroad.co.za> Date: Mon, 24 Mar 2025 11:47:20 +0200 Subject: [PATCH] 2264739: Fix PHPCS issues --- core/includes/theme.inc | 7 ++++--- core/lib/Drupal/Core/Field/WidgetBase.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/includes/theme.inc b/core/includes/theme.inc index f3c1d8e0073e..c59f20eb1175 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1583,13 +1583,14 @@ function template_preprocess_field_multiple_value_without_order_form(&$variables continue; } - // Delay rendering of the "Display" option and the weight selector, so that - // each can be rendered later in its own column. + // Delay rendering of the "Display" option and the weight selector, so + // that each can be rendered later in its own column. if ($element['#display_field']) { hide($widget['display']); } - // Render everything else together in a column, without the normal wrappers. + // Render everything else together in a column, without the normal + // wrappers. $widget['#theme_wrappers'] = []; if ($element['#display_field']) { unset($widget['display']['#title']); diff --git a/core/lib/Drupal/Core/Field/WidgetBase.php b/core/lib/Drupal/Core/Field/WidgetBase.php index 1bf14aa31c9f..e4b6b228b61f 100644 --- a/core/lib/Drupal/Core/Field/WidgetBase.php +++ b/core/lib/Drupal/Core/Field/WidgetBase.php @@ -666,7 +666,7 @@ public function settingsSummary() { if ($this->fieldDefinition->getFieldStorageDefinition()->getCardinality() != 1) { $orderable = $this->getSetting('orderable'); - $summary[] = t('Orderable: @orderable', ['@orderable' => ($orderable ? t('Yes') : t('No'))]); + $summary[] = $this->t('Orderable: @orderable', ['@orderable' => ($orderable ? $this->t('Yes') : $this->t('No'))]); } return $summary; -- GitLab