public function ComplexDataInterface::onChange

React to changes to a child property.

Note that this is invoked before any changes are applied.

Parameters

$property_name: The name of the property which is changed.

7 methods override ComplexDataInterface::onChange()
Entity::onChange in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::onChange().
EntityBCDecorator::onChange in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
EntityTranslation::onChange in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::onChange().
EntityWrapper::onChange in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::onChange().
Map::onChange in drupal/core/lib/Drupal/Core/TypedData/Type/Map.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::onChange().

... See full list

File

drupal/core/lib/Drupal/Core/TypedData/ComplexDataInterface.php, line 136
Contains \Drupal\Core\TypedData\ComplexDataInterface.

Class

ComplexDataInterface
Interface for complex data; i.e. data containing named and typed properties.

Namespace

Drupal\Core\TypedData

Code

public function onChange($property_name);