function ContextDefinitionInterface::setDataType
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDataType()
- 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDataType()
- 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\ContextCode
public function setDataType($data_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.