interface TraversableTypedDataInterface
Same name in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface
- 10 core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface
- 11.x core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface
An interface for typed data objects that can be traversed.
Hierarchy
- interface \Drupal\Core\TypedData\TypedDataInterface
- interface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Drupal\Core\TypedData\TypedDataInterface \Drupal\Core\TypedData\Traversable
Expanded class hierarchy of TraversableTypedDataInterface
All classes that implement TraversableTypedDataInterface
5 files declare their use of TraversableTypedDataInterface
- ConfigMapperManager.php in core/
modules/ config_translation/ src/ ConfigMapperManager.php - ListElement.php in core/
modules/ config_translation/ src/ FormElement/ ListElement.php - LocaleConfigManager.php in core/
modules/ locale/ src/ LocaleConfigManager.php - SchemaCheckTrait.php in core/
lib/ Drupal/ Core/ Config/ Schema/ SchemaCheckTrait.php - TypedConfigInterface.php in core/
lib/ Drupal/ Core/ Config/ Schema/ TypedConfigInterface.php
File
-
core/
lib/ Drupal/ Core/ TypedData/ TraversableTypedDataInterface.php, line 8
Namespace
Drupal\Core\TypedDataView source
interface TraversableTypedDataInterface extends TypedDataInterface, \Traversable {
/**
* React to changes to a child property or item.
*
* Note that this is invoked after any changes have been applied.
*
* @param $name
* The name of the property or the delta of the list item which is changed.
*/
public function onChange($name);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TraversableTypedDataInterface::onChange | public | function | React to changes to a child property or item. | 4 |
TypedDataInterface::applyDefaultValue | public | function | Applies the default value. | 1 |
TypedDataInterface::createInstance | public static | function | Constructs a TypedData object given its definition and context. | 1 |
TypedDataInterface::getConstraints | public | function | Gets a list of validation constraints. | 1 |
TypedDataInterface::getDataDefinition | public | function | Gets the data definition. | 3 |
TypedDataInterface::getName | public | function | Returns the name of a property or item. | 1 |
TypedDataInterface::getParent | public | function | Returns the parent data structure; i.e. either complex data or a list. | 1 |
TypedDataInterface::getPropertyPath | public | function | Returns the property path of the data. | 1 |
TypedDataInterface::getRoot | public | function | Returns the root of the typed data tree. | 1 |
TypedDataInterface::getString | public | function | Returns a string representation of the data. | 1 |
TypedDataInterface::getValue | public | function | Gets the data value. | 1 |
TypedDataInterface::setContext | public | function | Sets the context of a property or item via a context aware parent. | 1 |
TypedDataInterface::setValue | public | function | Sets the data value. | 1 |
TypedDataInterface::validate | public | function | Validates the currently set data value. | 1 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.