Commit c862b715 authored by Dries's avatar Dries

Issue #1812440 by Sylvain Lecoy: remove __construct() from EntityInterface.

parent c3c87941
......@@ -57,7 +57,13 @@ class Entity implements IteratorAggregate, EntityInterface {
protected $isDefaultRevision = TRUE;
/**
* Constructs a new entity object.
* Constructs an Entity object.
*
* @param array $values
* An array of values to set, keyed by property name. If the entity type
* has bundles, the bundle key has to be specified.
* @param string $entity_type
* The type of the entity to create.
*/
public function __construct(array $values, $entity_type) {
$this->entityType = $entity_type;
......
......@@ -19,17 +19,6 @@
*/
interface EntityInterface extends ComplexDataInterface, AccessibleInterface, TranslatableInterface {
/**
* Constructs a new entity object.
*
* @param $values
* An array of values to set, keyed by property name. If the entity type
* has bundles, the bundle key has to be specified.
* @param $entity_type
* The type of the entity to create.
*/
public function __construct(array $values, $entity_type);
/**
* Returns the entity identifier (the entity's machine name or numeric ID).
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment