You are here

public function ContextDefinitionInterface::setRequired in Plug 7

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);