public function ContextDefinition::isRequired in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 176 - Contains \Drupal\Core\Plugin\Context\ContextDefinition.
Class
- ContextDefinition
- Defines a class for context definitions.
Namespace
Drupal\Core\Plugin\ContextCode
public function isRequired() {
return $this->isRequired;
}