public function EntityTranslation::set

Implements ComplexDataInterface::set().

Overrides ComplexDataInterface::set

File

drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php, line 146
Definition of Drupal\Core\Entity\Type\EntityTranslation.

Class

EntityTranslation
Makes translated entity properties available via the Field API.

Namespace

Drupal\Core\Entity\Field\Type

Code

public function set($property_name, $value) {
  $this
    ->get($property_name)
    ->setValue($value);
}