Issue #2359449 by Jose Reyero: Fixed TypedData calls onChange() parent's method that is not part of the interface.

8.0.x
Alex Pott 2014-10-23 12:20:53 +01:00
parent 5dcc99f934
commit 388758f46a
3 changed files with 13 additions and 20 deletions

View File

@ -100,13 +100,4 @@ interface ComplexDataInterface extends TraversableTypedDataInterface {
*/
public function isEmpty();
/**
* React to changes to a child property.
*
* Note that this is invoked after any changes have been applied.
*
* @param $property_name
* The name of the property which is changed.
*/
public function onChange($property_name);
}

View File

@ -38,16 +38,6 @@ interface ListInterface extends TraversableTypedDataInterface, \ArrayAccess, \Co
*/
public function getItemDefinition();
/**
* React to changes to a child item.
*
* Note that this is invoked after any changes have been applied.
*
* @param $delta
* The delta of the item which is changed.
*/
public function onChange($delta);
/**
* Returns the item at the specified position in this list.
*

View File

@ -10,4 +10,16 @@ namespace Drupal\Core\TypedData;
/**
* An interface for typed data objects that can be traversed.
*/
interface TraversableTypedDataInterface extends TypedDataInterface, \Traversable {}
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);
}