You are here

public function MetadataInterface::getConstraints in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/MetadataInterface.php \Symfony\Component\Validator\Mapping\MetadataInterface::getConstraints()

Returns all constraints of this element.

Return value

Constraint[] A list of Constraint instances

2 methods override MetadataInterface::getConstraints()
GenericMetadata::getConstraints in vendor/symfony/validator/Mapping/GenericMetadata.php
Returns all constraints of this element.
TypedDataMetadata::getConstraints in core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php
Returns all constraints of this element.

File

vendor/symfony/validator/Mapping/MetadataInterface.php, line 59

Class

MetadataInterface
A container for validation metadata.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getConstraints();