TypedDataInterface::applyDefaultValue

public TypedDataInterface::applyDefaultValue($notify = TRUE) Applies the default value. Parameters 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. Return value \Drupal\Core\TypedData\TypedDataInterface Returns itself to allow for chaining. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 103 Class TypedDataInterface Interface for type

TypedDataInterface::createInstance

public static TypedDataInterface::createInstance($definition, $name = NULL, TraversableTypedDataInterface $parent = NULL) Constructs a TypedData object given its definition and context. @todo When \Drupal\Core\Config\TypedConfigManager has been fixed to use class-based definitions, type-hint $definition to DataDefinitionInterface. https://www.drupal.org/node/1928868 Parameters \Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition. string|null $name: (optional) The nam

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

public TypedDataInterface::getDataDefinition() Gets the data definition. Return value \Drupal\Core\TypedData\DataDefinitionInterface The data definition object. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 40 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function getDataDefinition();

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

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