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

Breadcrumb

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

interface MetadataInterface

Same name in this branch
  1. 11.1.x vendor/open-telemetry/api/Baggage/MetadataInterface.php \OpenTelemetry\API\Baggage\MetadataInterface

A container for validation metadata.

Most importantly, the metadata stores the constraints against which an object and its properties should be validated.

Additionally, the metadata stores whether objects should be validated against their class' metadata and whether traversable objects should be traversed or not.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

  • interface \Symfony\Component\Validator\Mapping\MetadataInterface

Expanded class hierarchy of MetadataInterface

All classes that implement MetadataInterface

See also

CascadingStrategy

TraversalStrategy

12 files declare their use of MetadataInterface
BlackHoleMetadataFactory.php in vendor/symfony/validator/Mapping/Factory/BlackHoleMetadataFactory.php
ConstraintValidatorTestCase.php in vendor/symfony/validator/Test/ConstraintValidatorTestCase.php
ExecutionContext.php in vendor/symfony/validator/Context/ExecutionContext.php
ExecutionContext.php in core/lib/Drupal/Core/Validation/ExecutionContext.php
ExecutionContextInterface.php in vendor/symfony/validator/Context/ExecutionContextInterface.php

... See full list

File

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

Namespace

Symfony\Component\Validator\Mapping
View source
interface MetadataInterface {
    
    /**
     * Returns the strategy for cascading objects.
     *
     * @see CascadingStrategy
     */
    public function getCascadingStrategy() : int;
    
    /**
     * Returns the strategy for traversing traversable objects.
     *
     * @see TraversalStrategy
     */
    public function getTraversalStrategy() : int;
    
    /**
     * Returns all constraints of this element.
     *
     * @return Constraint[]
     */
    public function getConstraints() : array;
    
    /**
     * Returns all constraints for a given validation group.
     *
     * @param string $group The validation group
     *
     * @return Constraint[]
     */
    public function findConstraints(string $group) : array;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
MetadataInterface::findConstraints public function Returns all constraints for a given validation group. 2
MetadataInterface::getCascadingStrategy public function Returns the strategy for cascading objects. 2
MetadataInterface::getConstraints public function Returns all constraints of this element. 2
MetadataInterface::getTraversalStrategy public function Returns the strategy for traversing traversable objects. 2

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal