function ContextDefinitionInterface::getDataType

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::getDataType()
  2. 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::getDataType()
  3. 11.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::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.

1 method overrides ContextDefinitionInterface::getDataType()
ContextDefinition::getDataType in core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
Gets the data type needed by the context.

File

core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php, line 59

Class

ContextDefinitionInterface
Interface used to define definition objects found in ContextInterface.

Namespace

Drupal\Component\Plugin\Context

Code

public function getDataType();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.