public function TypedDataInterface::validate in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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.
2 methods override TypedDataInterface::validate()
- TestComplexData::validate in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php - Validates the currently set data value.
- 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 97 - Contains \Drupal\Core\TypedData\TypedDataInterface.
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function validate();