You are here

public function ContextDefinition::getDataType in Drupal 10

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

Gets the data type needed by the context.

If the context is multiple-valued, this represents the type of each value.

Return value

string The data type.

Overrides ContextDefinitionInterface::getDataType

3 calls to ContextDefinition::getDataType()
ContextDefinition::dataTypeMatches in core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
Checks if this definition's data type matches that of the given context.
ContextDefinition::getDataDefinition in core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
Returns the data definition of the defined context.
EntityContextDefinition::getEntityTypeId in core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php
Returns the entity type ID of this context.

File

core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php, line 121

Class

ContextDefinition
Defines a class for context definitions.

Namespace

Drupal\Core\Plugin\Context

Code

public function getDataType() {
  return $this->dataType;
}