You are here

public function TypedDataInterface::validate in Drupal 9

Same name and namespace in other branches
  1. 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.

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\TypedData

Code

public function validate();