You are here

public function ContextDefinitionInterface::setRequired in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setRequired()

Sets whether the data is required.

Parameters

bool $required: (optional) Whether the data is multi-valued. Defaults to TRUE.

Return value

$this

File

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

Class

ContextDefinitionInterface
Interface for context definitions.

Namespace

Drupal\Component\Plugin\Context

Code

public function setRequired($required = TRUE);