Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArgumentPluginBase.php

function 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.

4 calls to ArgumentPluginBase::getContextDefinition()
NumericArgument::getContextDefinition in core/modules/views/src/Plugin/views/argument/NumericArgument.php
Returns a context definition for this argument.
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.
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 1400

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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal