Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface::onChange()
- 9 core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface::onChange()
React to changes to a child property or item.
Note that this is invoked after any changes have been applied.
Parameters
$name: The name of the property or the delta of the list item which is changed.
2 calls to TraversableTypedDataInterface::onChange()
- ModerationStateFieldItemList::onChange in core/
modules/ content_moderation/ src/ Plugin/ Field/ ModerationStateFieldItemList.php - React to changes to a child property or item.
- TextItemBase::onChange in core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextItemBase.php - React to changes to a child property or item.
3 methods override TraversableTypedDataInterface::onChange()
- ArrayElement::onChange in core/
lib/ Drupal/ Core/ Config/ Schema/ ArrayElement.php - React to changes to a child property or item.
- ModerationStateFieldItemList::onChange in core/
modules/ content_moderation/ src/ Plugin/ Field/ ModerationStateFieldItemList.php - React to changes to a child property or item.
- TextItemBase::onChange in core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextItemBase.php - React to changes to a child property or item.
File
- core/
lib/ Drupal/ Core/ TypedData/ TraversableTypedDataInterface.php, line 18
Class
- TraversableTypedDataInterface
- An interface for typed data objects that can be traversed.
Namespace
Drupal\Core\TypedDataCode
public function onChange($name);