function TypedDataInterface::getConstraints

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

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