EntityStorageBase::doCreate

protected EntityStorageBase::doCreate(array $values)

Performs storage-specific creation of entities.

Parameters

array $values: An array of values to set, keyed by property name.

Return value

\Drupal\Core\Entity\EntityInterface

File

core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 204

Class

EntityStorageBase
A base entity storage class.

Namespace

Drupal\Core\Entity

Code

protected function doCreate(array $values) {
  return new $this->entityClass($values, $this->entityTypeId);
}
doc_Drupal
2016-10-29 09:07:38
Comments
Leave a Comment

Please login to continue.