TypedDataInterface::setValue

public TypedDataInterface::setValue($value, $notify = TRUE) Sets the data value. Parameters mixed|null $value: The value to set in the format as documented for the data type or NULL to unset the data value. bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again. Throws \InvalidArgumentException If the value input is inappropriate. \Drupal\Core\TypedData\Exception

TypedDataInterface::validate

public TypedDataInterface::validate() Validates the currently set data value. Return value \Symfony\Component\Validator\ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 90 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function validate();

TypedDataInterface::getRoot

public TypedDataInterface::getRoot() Returns the root of the typed data tree. Returns the root data for a tree of typed data objects; e.g. for an entity field item the root of the tree is its parent entity object. Return value \Drupal\Core\TypedData\TraversableTypedDataInterface The root data structure, either complex data or a list. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 133 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\Type

TypedDataInterface::getValue

public TypedDataInterface::getValue() Gets the data value. Return value mixed File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 47 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function getValue();

TypedDataInterface::getString

public TypedDataInterface::getString() Returns a string representation of the data. Return value string File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 72 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function getString();

TypedDataInterface::getPropertyPath

public TypedDataInterface::getPropertyPath() Returns the property path of the data. The trail of property names relative to the root of the typed data tree, separated by dots; e.g. 'field_text.0.format'. Return value string The property path relative to the root of the typed tree, or an empty string if this is the root. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 145 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code pu

TypedDataInterface::setContext

public TypedDataInterface::setContext($name = NULL, TraversableTypedDataInterface $parent = NULL) Sets the context of a property or item via a context aware parent. This method is supposed to be called by the factory only. Parameters string|null $name: (optional) The name of the property or the delta of the list item, or NULL if it is the root of a typed data tree. Defaults to NULL. \Drupal\Core\TypedData\TraversableTypedDataInterface|null $parent: (optional) The parent object of the data prop

TypedDataInterface::getParent

public TypedDataInterface::getParent() Returns the parent data structure; i.e. either complex data or a list. Return value \Drupal\Core\TypedData\TraversableTypedDataInterface|null The parent data structure, either complex data or a list; or NULL if this is the root of the typed data tree. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 122 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function getParent();

TypedDataInterface::getConstraints

public TypedDataInterface::getConstraints() Gets a list of validation constraints. Return value array Array of constraints, each being an instance of \Symfony\Component\Validator\Constraint. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 81 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function getConstraints();

TypedDataInterface::getName

public TypedDataInterface::getName() Returns the name of a property or item. Return value string If the data is a property of some complex data, the name of the property. If the data is an item of a list, the name is the numeric position of the item in the list, starting with 0. Otherwise, NULL is returned. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 113 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function