1 entity.controller.inc public EntityStorageControllerInterface::create(array $values)

Constructs a new entity object, without permanently saving it.

Parameters

$values: An array of values to set, keyed by property name. If the entity type has bundles the bundle key has to be specified.

Return value

EntityInterface: A new entity object.

File

core/modules/entity/entity.controller.inc, line 550
Entity API controller classes and interface.

Class

EntityStorageControllerInterface
Defines a common interface for entity storage controllers.

Code

public function create(array $values);