You are here

function EntityBase::__construct in Realistic Dummy Content 8

Constructor.

Parameters

$entity: The entity object.

$type: The entity type of the object, for example user or node.

File

api/src/manipulators/EntityBase.php, line 33
Define autoload class.

Class

EntityBase
Generic entity manipulator.

Namespace

Drupal\realistic_dummy_content_api\manipulators

Code

function __construct($entity, $type) {
  $this->entity = $entity;
  $this->hash = md5(serialize($entity));
  $this->type = $type;
}