You are here

public function Context::getContextDefinition in Drupal 10

Same name in this branch
  1. 10 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::getContextDefinition()
  2. 10 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::getContextDefinition()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::getContextDefinition()
  2. 9 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::getContextDefinition()

Gets the provided definition that the context must conform to.

Return value

\Drupal\Component\Plugin\Context\ContextDefinitionInterface The defining characteristic representation of the context.

Overrides ContextInterface::getContextDefinition

2 calls to Context::getContextDefinition()
Context::getContextValue in core/lib/Drupal/Component/Plugin/Context/Context.php
Gets the context value.
Context::hasContextValue in core/lib/Drupal/Component/Plugin/Context/Context.php
Returns whether the context has a value.
1 method overrides Context::getContextDefinition()
Context::getContextDefinition in core/lib/Drupal/Core/Plugin/Context/Context.php
Gets the provided definition that the context must conform to.

File

core/lib/Drupal/Component/Plugin/Context/Context.php, line 71

Class

Context
A generic context class for wrapping data a plugin needs to operate.

Namespace

Drupal\Component\Plugin\Context

Code

public function getContextDefinition() {
  return $this->contextDefinition;
}