TraversableTypedDataInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php
  2. 8.9.x core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php
  3. 10 core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php

Namespace

Drupal\Core\TypedData

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

Title Deprecated Summary
TraversableTypedDataInterface An interface for typed data objects that can be traversed.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.