public function ArgumentPluginBase::setArgument

Set the input for this argument

Return value

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

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, line 986
Definition of Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for arguments.

Namespace

Drupal\views\Plugin\views\argument

Code

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