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::__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::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::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::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::$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;

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);

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

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::getPropertyInstance

public TypedDataManagerInterface::getPropertyInstance(TypedDataInterface $object, $property_name, $value = NULL) Get a typed data instance for a property of a given typed data object. This method will use prototyping for fast and efficient instantiation of many property objects with the same property path; for example, when multiple comments are used comment_body.0.value needs to be instantiated very often. Prototyping is done by the root object's data type and the given property path, i.e. all