function FieldStorageConfig::getConstraint
Same name and namespace in other branches
- 8.9.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getConstraint()
- 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getConstraint()
- 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getConstraint()
Returns a validation constraint.
See \Drupal\Core\TypedData\DataDefinitionInterface::getConstraints() for details.
Parameters
string $constraint_name: The name of the constraint, i.e. its plugin id.
Return value
array A validation constraint definition which can be used for instantiating a \Symfony\Component\Validator\Constraint object.
Overrides FieldStorageDefinitionInterface::getConstraint
File
-
core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 736
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function getConstraint($constraint_name) {
return NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.