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

Breadcrumb

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

function ClassMetadataInterface::getPropertyMetadata

Returns all metadata instances for the given named property.

If your implementation does not support properties, throw an exception in this method (for example a <tt>BadMethodCallException</tt>).

Parameters

string $property The property name:

Return value

PropertyMetadataInterface[]

1 method overrides ClassMetadataInterface::getPropertyMetadata()
ClassMetadata::getPropertyMetadata in vendor/symfony/validator/Mapping/ClassMetadata.php
Returns all metadata instances for the given named property.

File

vendor/symfony/validator/Mapping/ClassMetadataInterface.php, line 86

Class

ClassMetadataInterface
Stores all metadata needed for validating objects of specific class.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getPropertyMetadata(string $property) : array;
RSS feed
Powered by Drupal