public function Entity::set

Implements 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 ComplexDataInterface::set().

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 189
Definition of Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function set($property_name, $value) {

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