public function ContextDefinition::isRequired in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php \Drupal\Core\Plugin\Context\ContextDefinition::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.
Overrides ContextDefinitionInterface::isRequired
1 call to ContextDefinition::isRequired()
- ContextDefinition::getDataDefinition in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php - Returns the data definition of the defined context.
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php, line 181
Class
- ContextDefinition
- Defines a class for context definitions.
Namespace
Drupal\Core\Plugin\ContextCode
public function isRequired() {
return $this->isRequired;
}