FieldStorageConfig::getConstraints

public 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

See also

\Symfony\Component\Validator\Constraint

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 721

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getConstraints() {
  return array();
}
doc_Drupal
2016-10-29 09:12:17
Comments
Leave a Comment

Please login to continue.