You are here

public function ArgumentPluginBase::getContextDefinition in Drupal 8

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

Returns a context definition for this argument.

Return value

\Drupal\Core\Plugin\Context\ContextDefinitionInterface|null A context definition that represents the argument or NULL if that is not possible.

2 calls to ArgumentPluginBase::getContextDefinition()
NumericArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/NumericArgument.php
Returns a context definition for this argument.
StringArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/StringArgument.php
Returns a context definition for this argument.
2 methods override ArgumentPluginBase::getContextDefinition()
NumericArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/NumericArgument.php
Returns a context definition for this argument.
StringArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/StringArgument.php
Returns a context definition for this argument.

File

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

Class

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

Namespace

Drupal\views\Plugin\views\argument

Code

public function getContextDefinition() {
  return $this
    ->getPlugin('argument_validator')
    ->getContextDefinition();
}