You are here

public function FieldStorageDefinitionInterface::getConstraints in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 281
Contains \Drupal\Core\Field\FieldStorageDefinitionInterface.

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getConstraints();