You are here

public function CalendarValidator::setArgument in Calendar 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/argument_validator/CalendarValidator.php \Drupal\calendar\Plugin\views\argument_validator\CalendarValidator::setArgument()

Sets the parent argument this plugin is associated with.

Parameters

\Drupal\views\Plugin\views\argument\ArgumentPluginBase $argument: The parent argument to set.

Overrides ArgumentValidatorPluginBase::setArgument

File

src/Plugin/views/argument_validator/CalendarValidator.php, line 80

Class

CalendarValidator
Defines a argument validator plugin for Date arguments used in Calendar.

Namespace

Drupal\calendar\Plugin\views\argument_validator

Code

public function setArgument(ArgumentPluginBase $argument) {
  parent::setArgument($argument);
  if ($argument instanceof Date) {
    $this->argumentWrapper = new DateArgumentWrapper($argument);
  }
}