diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php index 9cb7464..56158ed 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php @@ -88,9 +88,9 @@ public static function create(ContainerInterface $container, array $configuratio */ public function defaultArgumentForm(&$form, &$form_state) { parent::defaultArgumentForm($form, $form_state); - $form['default_argument_type']['#options'] += array('date' => t('Current date')); - $form['default_argument_type']['#options'] += array('node_created' => t("Current node's creation time")); - $form['default_argument_type']['#options'] += array('node_changed' => t("Current node's update time")); + $form['default_argument_type']['#options'] += array('date' => $this->t('Current date')); + $form['default_argument_type']['#options'] += array('node_created' => $this->t("Current node's creation time")); + $form['default_argument_type']['#options'] += array('node_changed' => $this->t("Current node's update time")); } /** @@ -124,7 +124,7 @@ public function getDefaultArgument($raw = FALSE) { * {@inheritdoc} */ public function getSortName() { - return t('Date', array(), array('context' => 'Sort order')); + return $this->t('Date', array(), array('context' => 'Sort order')); } /**