Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface
- 9 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\Traversable
Expanded class hierarchy of TraversableTypedDataInterface
All classes that implement TraversableTypedDataInterface
3 files declare their use of TraversableTypedDataInterface
- ListElement.php in core/
modules/ config_translation/ src/ FormElement/ ListElement.php - LocaleConfigManager.php in core/
modules/ locale/ src/ LocaleConfigManager.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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TraversableTypedDataInterface:: |
public | function | React to changes to a child property or item. | 3 |
TypedDataInterface:: |
public | function | Applies the default value. | 3 |
TypedDataInterface:: |
public static | function | Constructs a TypedData object given its definition and context. | 1 |
TypedDataInterface:: |
public | function | Gets a list of validation constraints. | 3 |
TypedDataInterface:: |
public | function | Gets the data definition. | 3 |
TypedDataInterface:: |
public | function | Returns the name of a property or item. | 1 |
TypedDataInterface:: |
public | function | Returns the parent data structure; i.e. either complex data or a list. | 1 |
TypedDataInterface:: |
public | function | Returns the property path of the data. | 1 |
TypedDataInterface:: |
public | function | Returns the root of the typed data tree. | 1 |
TypedDataInterface:: |
public | function | Returns a string representation of the data. | 1 |
TypedDataInterface:: |
public | function | Gets the data value. | 1 |
TypedDataInterface:: |
public | function | Sets the context of a property or item via a context aware parent. | 1 |
TypedDataInterface:: |
public | function | Sets the data value. | 3 |
TypedDataInterface:: |
public | function | Validates the currently set data value. | 1 |