public function Entity::set

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

Overrides ComplexDataInterface::set

2 methods override Entity::set()
ConfigEntityBase::set in drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Overrides Entity::set().
EntityNG::set in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::set().

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 209
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function set($property_name, $value, $notify = TRUE) {

  // @todo: Replace by EntityNG implementation once all entity types have been
  // converted to use the entity field API.
  $this->{$property_name} = $value;
}