Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::validate()
- 9 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::validate()
Validates the currently set data value.
Return value
\Symfony\Component\Validator\ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded.
1 call to TypedDataInterface::validate()
- FieldItemList::defaultValuesFormValidate in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Validates the submitted default value.
1 method overrides TypedDataInterface::validate()
- TypedData::validate in core/
lib/ Drupal/ Core/ TypedData/ TypedData.php - Validates the currently set data value.
File
- core/
lib/ Drupal/ Core/ TypedData/ TypedDataInterface.php, line 92
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function validate();