function ArgumentValidatorPluginBase::setArgument

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php \Drupal\views\Plugin\views\argument_validator\ArgumentValidatorPluginBase::setArgument()
  2. 8.9.x core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php \Drupal\views\Plugin\views\argument_validator\ArgumentValidatorPluginBase::setArgument()
  3. 11.x core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php \Drupal\views\Plugin\views\argument_validator\ArgumentValidatorPluginBase::setArgument()

Sets the parent argument this plugin is associated with.

Parameters

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

File

core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php, line 55

Class

ArgumentValidatorPluginBase
Base argument validator plugin to provide basic functionality.

Namespace

Drupal\views\Plugin\views\argument_validator

Code

public function setArgument(ArgumentPluginBase $argument) {
    $this->argument = $argument;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.