You are here

public function ContextDefinitionInterface::setDataType in Service Container 7

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

File

lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php, line 72
Contains \Drupal\Component\Plugin\Context\ContextDefinitionInterface.

Class

ContextDefinitionInterface
Interface for context definitions.

Namespace

Drupal\Component\Plugin\Context

Code

public function setDataType($data_type);