Validates the currently set data value.
Return value
\Symfony\Component\Validator\ConstraintViolationListInterface
A list of constraint violations. If the list is empty, validation
succeeded.
File
- drupal/core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 79
- Contains \Drupal\Core\TypedData\TypedDataInterface.
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedData
Code
public function validate();