You are here

public function Framework::setEntityProperty in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::setEntityProperty()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::setEntityProperty()

Sets the property of an entity.

Overrides FrameworkInterface::setEntityProperty

1 method overrides Framework::setEntityProperty()
Drupal8::setEntityProperty in api/src/Framework/Drupal8.php
Sets the property of an entity.

File

api/src/Framework/Framework.php, line 266

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function setEntityProperty(&$entity, $property, $value) {
  return $this
    ->implementor()
    ->setEntityProperty($entity, $property, $value);
}