/** * {@inheritdoc} */ public function validateArgument($arg) { if (isset($this->argument_wrapper) && $this->argument_wrapper->validateValue($arg)) { $date = $this->argument_wrapper->createDateTime(); // Override title for substitutions // @see \Drupal\views\Plugin\views\argument\ArgumentPluginBase::getTitle $this->argument->validated_title = $date->format($this->options['replacement_format']); return TRUE; } return FALSE; }