function ContextDefinitionInterface::setDataType

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDataType()
  2. 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDataType()
  3. 11.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDataType()

Sets the data type needed by the context.

Parameters

string $data_type: The data type to set.

Return value

$this

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

File

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

Class

ContextDefinitionInterface
Interface used to define definition objects found in ContextInterface.

Namespace

Drupal\Component\Plugin\Context

Code

public function setDataType($data_type);

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