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

TypedDataTrait

Wrapper methods for classes that needs typed data manager object. Hierarchy trait \Drupal\Core\TypedData\TypedDataTrait File core/lib/Drupal/Core/TypedData/TypedDataTrait.php, line 8 Namespace Drupal\Core\TypedData Members Name Modifiers Type Description TypedDataTrait::$typedDataManager protected property The typed data manager used for creating the data types. TypedDataTrait::getTypedDataManager public function Gets the typed data manager. TypedDataTrait::set

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

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.

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.'); }

TypedDataManagerInterface::getInstance

public TypedDataManagerInterface::getInstance(array $options) Parameters array $options: An array of options with the following keys: object: The parent typed data object, implementing the TypedDataInterface and either the ListInterface or the ComplexDataInterface. property: The name of the property to instantiate, or the delta of the the list item to instantiate. value: The value to set. If set, it has to match one of the supported data type formats as documented by the data type classes.