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); }
Please login to continue.