You are here

public function TypedDataInterface::getConstraints in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getConstraints()
  2. 9 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getConstraints()

Gets a list of validation constraints.

Return value

array Array of constraints, each being an instance of \Symfony\Component\Validator\Constraint.

1 method overrides TypedDataInterface::getConstraints()
TypedData::getConstraints in core/lib/Drupal/Core/TypedData/TypedData.php
Gets a list of validation constraints.

File

core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 83

Class

TypedDataInterface
Interface for typed data objects.

Namespace

Drupal\Core\TypedData

Code

public function getConstraints();