summaryrefslogtreecommitdiffstats
path: root/core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php
blob: 2ed4b214ac162933684609b9b95c39dd8cc3a7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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);

}