function FieldStorageDefinitionInterface::getConstraints
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getConstraints()
- 10 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getConstraints()
- 11.x 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\FieldCode
public function getConstraints();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.