public function EntityNG::set

Implements ComplexDataInterface::set().

Overrides Entity::set

File

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

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

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