diff --git a/core/includes/theme.inc b/core/includes/theme.inc index f3c1d8e0073e3e42059da8aa97b99cbdf54ea955..c59f20eb1175c9c53f6573eb26f941c8f4776904 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 1bf14aa31c9f3913f8fe1c0f66c1b5f02c052b39..e4b6b228b61f67578c519a9fe71d006061d84347 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;