function DataDefinitionInterface::isRequired
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::isRequired()
- 10 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::isRequired()
- 11.x core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::isRequired()
Determines whether a data value is required.
For required data a non-NULL value is mandatory.
Return value
bool Whether a data value is required.
2 methods override DataDefinitionInterface::isRequired()
- DataDefinition::isRequired in core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php - Determines whether a data value is required.
- FieldDefinitionInterface::isRequired in core/
lib/ Drupal/ Core/ Field/ FieldDefinitionInterface.php - Returns whether the field can be empty.
File
-
core/
lib/ Drupal/ Core/ TypedData/ DataDefinitionInterface.php, line 114
Class
- DataDefinitionInterface
- Interface for data definitions.
Namespace
Drupal\Core\TypedDataCode
public function isRequired();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.