You are here

public function ContextDefinitionInterface::getDataDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php \Drupal\Core\Plugin\Context\ContextDefinitionInterface::getDataDefinition()
  2. 9 core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php \Drupal\Core\Plugin\Context\ContextDefinitionInterface::getDataDefinition()

Returns the data definition of the defined context.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface The data definition object.

1 method overrides ContextDefinitionInterface::getDataDefinition()
ContextDefinition::getDataDefinition in core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
Returns the data definition of the defined context.

File

core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php, line 21

Class

ContextDefinitionInterface
Interface to define definition objects in ContextInterface via TypedData.

Namespace

Drupal\Core\Plugin\Context

Code

public function getDataDefinition();