function FieldStorageConfig::getConstraints
Same name and namespace in other branches
- 8.9.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getConstraints()
- 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getConstraints()
- 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::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.
Overrides FieldStorageDefinitionInterface::getConstraints
File
-
core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 729
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function getConstraints() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.