function ContextDefinitionInterface::isRequired
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::isRequired()
- 8.9.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::isRequired()
- 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::isRequired()
Determines whether the context is required.
For required data a non-NULL value is mandatory.
Return value
bool Whether a data value is required.
1 method overrides ContextDefinitionInterface::isRequired()
- ContextDefinition::isRequired in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php - Determines whether the context is required.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Context/ ContextDefinitionInterface.php, line 97
Class
- ContextDefinitionInterface
- Interface used to define definition objects found in ContextInterface.
Namespace
Drupal\Component\Plugin\ContextCode
public function isRequired();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.