You are here

public function ContextDefinitionInterface::setDataType in Drupal 8

Same name and namespace in other branches
  1. 9 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);