function TypedDataInterface::validate

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::validate()
  2. 10 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::validate()
  3. 11.x 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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.