diff -u b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php --- b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php @@ -39,16 +39,16 @@ public function settingsForm(array $form, array &$form_state) { $element['size'] = array( '#type' => 'number', - '#title' => t('Size of URI field'), + '#title' => $this->t('Size of URI field'), '#default_value' => $this->getSetting('size'), '#required' => TRUE, '#min' => 1, ); $element['placeholder'] = array( '#type' => 'textfield', - '#title' => t('Placeholder'), + '#title' => $this->t('Placeholder'), '#default_value' => $this->getSetting('placeholder'), - '#description' => t('Text that will be shown inside the field until a value is entered. This hint is usually a sample value or a brief description of the expected format.'), + '#description' => $this->t('Text that will be shown inside the field until a value is entered. This hint is usually a sample value or a brief description of the expected format.'), ); return $element; } @@ -59,10 +59,10 @@ public function settingsSummary() { $summary = array(); - $summary[] = t('URI field size: !size', array('!size' => $this->getSetting('size'))); + $summary[] = $this->t('URI field size: !size', array('!size' => $this->getSetting('size'))); $placeholder = $this->getSetting('placeholder'); if (!empty($placeholder)) { - $summary[] = t('Placeholder: @placeholder', array('@placeholder' => $placeholder)); + $summary[] = $this->t('Placeholder: @placeholder', array('@placeholder' => $placeholder)); } return $summary; diff -u b/core/modules/aggregator/lib/Drupal/aggregator/Tests/UpdateFeedTest.php b/core/modules/aggregator/lib/Drupal/aggregator/Tests/UpdateFeedTest.php --- b/core/modules/aggregator/lib/Drupal/aggregator/Tests/UpdateFeedTest.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Tests/UpdateFeedTest.php @@ -23,8 +23,8 @@ * Creates a feed and attempts to update it. */ function testUpdateFeed() { - $remamining_fields = array('title[0][value]', 'url[0][value]', ''); - foreach ($remamining_fields as $same_field) { + $remaining_fields = array('title[0][value]', 'url[0][value]', ''); + foreach ($remaining_fields as $same_field) { $feed = $this->createFeed(); // Get new feed data array and modify newly created feed.