TypedDataMetadata::__construct

public TypedDataMetadata::__construct(TypedDataInterface $typed_data) Constructs the object. Parameters \Drupal\Core\TypedData\TypedDataInterface $typed_data: The typed data object the metadata is about. File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 32 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function __construct(TypedDataInterface $typed_data) { $this->typedData = $typed

TypedDataMetadata::getTraversalStrategy

public TypedDataMetadata::getTraversalStrategy() Returns the strategy for traversing traversable objects. Return value int The traversal strategy Overrides MetadataInterface::getTraversalStrategy See also TraversalStrategy File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 60 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function getTraversalStrategy() { return TraversalStrategy::NON

TypedDataMetadata::getConstraints

public TypedDataMetadata::getConstraints() Returns all constraints of this element. Return value Constraint[] A list of Constraint instances Overrides MetadataInterface::getConstraints File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 53 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function getConstraints() { return $this->typedData->getConstraints(); }

TypedDataMetadata::getCascadingStrategy

public TypedDataMetadata::getCascadingStrategy() Returns the strategy for cascading objects. Return value int The cascading strategy Overrides MetadataInterface::getCascadingStrategy See also CascadingStrategy File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 67 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function getCascadingStrategy() { // By default, never cascade into validati

TypedDataMetadata::findConstraints

public TypedDataMetadata::findConstraints($group) File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 46 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function findConstraints($group) { return $this->getConstraints(); }

TypedDataMetadata::accept

public TypedDataMetadata::accept(ValidationVisitorInterface $visitor, $typed_data, $group, $propertyPath) File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 39 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code public function accept(ValidationVisitorInterface $visitor, $typed_data, $group, $propertyPath) { throw new BadMethodCallException('Not supported.'); }

TypedDataMetadata::$typedData

The typed data object the metadata is about. Type: \Drupal\Core\TypedData\TypedDataInterface File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 24 Class TypedDataMetadata Validator metadata for typed data objects. Namespace Drupal\Core\TypedData\Validation Code protected $typedData;

TypedDataMetadata

Validator metadata for typed data objects. Hierarchy class \Drupal\Core\TypedData\Validation\TypedDataMetadata implements MetadataInterface See also \Drupal\Core\TypedData\Validation\RecursiveValidator::getMetadataFor() File core/lib/Drupal/Core/TypedData/Validation/TypedDataMetadata.php, line 17 Namespace Drupal\Core\TypedData\Validation Members Name Modifiers Type Description TypedDataMetadata::$typedData protected property The typed data object the metadata is about.

TypedDataManagerInterface::setValidator

public TypedDataManagerInterface::setValidator(ValidatorInterface $validator) Sets the validator for validating typed data. Parameters \Symfony\Component\Validator\Validator\ValidatorInterface $validator: The validator object to set. File core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php, line 179 Class TypedDataManagerInterface Defines an interface for typed data manager. Namespace Drupal\Core\TypedData Code public function setValidator(ValidatorInterface $validator);

TypedDataManagerInterface::setValidationConstraintManager

public TypedDataManagerInterface::setValidationConstraintManager(ConstraintManager $constraintManager) Sets the validation constraint manager. The validation constraint manager is used to instantiate validation constraint plugins. Parameters \Drupal\Core\Validation\ConstraintManager $constraintManager: The constraint manager to set. File core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php, line 198 Class TypedDataManagerInterface Defines an interface for typed data manager. Nam