From 8a664f09c1d3ca078322b27653e70148cd18f2cc Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 7 Feb 2019 14:50:57 +0000 Subject: [PATCH] Issue #3029841 by kirkkala: Language API PHP example bug and coding standard violation --- core/lib/Drupal/Core/Language/language.api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Language/language.api.php b/core/lib/Drupal/Core/Language/language.api.php index 33c1ce69f8f2..f59365e82939 100644 --- a/core/lib/Drupal/Core/Language/language.api.php +++ b/core/lib/Drupal/Core/Language/language.api.php @@ -110,9 +110,9 @@ use Drupal\Core\Language\LanguageInterface; * translation in the user interface: * @code * // PHP code - * t('May', array(), array('context' => 'Long month name'); + * t('May', [], ['context' => 'Long month name']); * \Drupal::translation()->formatPlural($count, '1 something', - * '@count somethings', array(), array('context' => 'My context')); + * '@count somethings', [], ['context' => 'My context']); * * // JavaScript code * Drupal.t('May', {}, {'context': 'Long month name'});