function ItemList::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.
Overrides TraversableTypedDataInterface::onChange
1 call to ItemList::onChange()
- ModerationStateFieldItemList::onChange in core/modules/ content_moderation/ src/ Plugin/ Field/ ModerationStateFieldItemList.php 
- React to changes to a child property or item.
1 method overrides ItemList::onChange()
- ModerationStateFieldItemList::onChange in core/modules/ content_moderation/ src/ Plugin/ Field/ ModerationStateFieldItemList.php 
- React to changes to a child property or item.
File
- 
              core/lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ ItemList.php, line 290 
Class
- ItemList
- A generic list class.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function onChange($delta) {
  // Notify the parent of changes.
  if (isset($this->parent)) {
    $this->parent
      ->onChange($this->name);
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
