Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MetadataInterface.php

function MetadataInterface::getConstraints

Returns all constraints of this element.

Return value

Constraint[]

2 methods override MetadataInterface::getConstraints()
GenericMetadata::getConstraints in vendor/symfony/validator/Mapping/GenericMetadata.php
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 52

Class

MetadataInterface
A container for validation metadata.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getConstraints() : array;
RSS feed
Powered by Drupal