You are here

public function FieldStorageDefinitionInterface::getConstraints in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getConstraints()
  2. 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
Returns an array of validation constraints.

File

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

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getConstraints();