public function EntityTranslation::onChange

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

Overrides ComplexDataInterface::onChange

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 204
Contains \Drupal\Core\Entity\Type\EntityTranslation.

Class

EntityTranslation
Allows accessing and updating translated entity fields.

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);
  }
}