public function TypedDataInterface::getConstraints

Gets a list of validation constraints.

Return value

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

4 methods override TypedDataInterface::getConstraints()
Entity::getConstraints in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\TypedData\TypedDataInterface::getConstraints().
EntityBCDecorator::getConstraints in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
TypedData::getConstraints in drupal/core/lib/Drupal/Core/TypedData/TypedData.php
Implements \Drupal\Core\TypedData\TypedDataInterface::getConstraints().
ViewUI::getConstraints in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\TypedData\TypedDataInterface::getConstraints().

File

drupal/core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 70
Contains \Drupal\Core\TypedData\TypedDataInterface.

Class

TypedDataInterface
Interface for typed data objects.

Namespace

Drupal\Core\TypedData

Code

public function getConstraints();