public function ContextDefinitionInterface::setRequired in Service Container 7.2
Same name and namespace in other branches
- 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\ContextCode
public function setRequired($required = TRUE);