You are here

public function ArgumentDefaultPluginBase::setArgument in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php \Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase::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_default/ArgumentDefaultPluginBase.php, line 53

Class

ArgumentDefaultPluginBase
The fixed argument default handler; also used as the base.

Namespace

Drupal\views\Plugin\views\argument_default

Code

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