You are here

TraversableTypedDataInterface.php in Drupal 10

File

core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php
View source
<?php

namespace Drupal\Core\TypedData;


/**
 * An interface for typed data objects that can be traversed.
 */
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);

}

Interfaces

Namesort descending Description
TraversableTypedDataInterface An interface for typed data objects that can be traversed.