You are here

public function ArgumentPluginBase::setArgument in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::setArgument()

Set the input for this argument.

Return value

TRUE if it successfully validates; FALSE if it does not.

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 1044

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

public function setArgument($arg) {
  $this->argument = $arg;
  return $this
    ->validateArgument($arg);
}