public function EntityWrapper::onChange

Implements \Drupal\Core\TypedData\ComplexDataInterface::onChange().

Overrides ComplexDataInterface::onChange

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php, line 213
Contains \Drupal\Core\Entity\Field\Type\EntityWrapper.

Class

EntityWrapper
Defines an 'entity' data type, e.g. the computed 'entity' property of entity references.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function onChange($property_name) {

  // Notify the parent of changes.
  if (isset($this->parent)) {
    $this->parent
      ->onChange($this->name);
  }
}