Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface
  2. 9 core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php \Drupal\Core\TypedData\TraversableTypedDataInterface

An interface for typed data objects that can be traversed.

Hierarchy

Expanded class hierarchy of TraversableTypedDataInterface

All classes that implement TraversableTypedDataInterface

3 files declare their use of TraversableTypedDataInterface
ListElement.php in core/modules/config_translation/src/FormElement/ListElement.php
LocaleConfigManager.php in core/modules/locale/src/LocaleConfigManager.php
TypedConfigInterface.php in core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php

File

core/lib/Drupal/Core/TypedData/TraversableTypedDataInterface.php, line 8

Namespace

Drupal\Core\TypedData
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
TraversableTypedDataInterface::onChange public function React to changes to a child property or item. 3
TypedDataInterface::applyDefaultValue public function Applies the default value. 3
TypedDataInterface::createInstance public static function Constructs a TypedData object given its definition and context. 1
TypedDataInterface::getConstraints public function Gets a list of validation constraints. 3
TypedDataInterface::getDataDefinition public function Gets the data definition. 3
TypedDataInterface::getName public function Returns the name of a property or item. 1
TypedDataInterface::getParent public function Returns the parent data structure; i.e. either complex data or a list. 1
TypedDataInterface::getPropertyPath public function Returns the property path of the data. 1
TypedDataInterface::getRoot public function Returns the root of the typed data tree. 1
TypedDataInterface::getString public function Returns a string representation of the data. 1
TypedDataInterface::getValue public function Gets the data value. 1
TypedDataInterface::setContext public function Sets the context of a property or item via a context aware parent. 1
TypedDataInterface::setValue public function Sets the data value. 3
TypedDataInterface::validate public function Validates the currently set data value. 1