function FieldStorageDefinitionInterface::getConstraints

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getConstraints()
  2. 8.9.x core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getConstraints()
  3. 10 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getConstraints()

Returns an array of validation constraints.

See \Drupal\Core\TypedData\DataDefinitionInterface::getConstraints() for details.

Return value

array[] An array of validation constraint definitions, keyed by constraint name. Each constraint definition can be used for instantiating \Symfony\Component\Validator\Constraint objects.

See also

\Symfony\Component\Validator\Constraint

1 method overrides FieldStorageDefinitionInterface::getConstraints()
FieldStorageConfig::getConstraints in core/modules/field/src/Entity/FieldStorageConfig.php

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 274

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getConstraints();

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