You are here

protected function FieldableEdgeEntityStorageBase::doCreate in Apigee Edge 8

Overrides EntityStorageBase::doCreate

See also

\Drupal\Core\Entity\ContentEntityStorageBase::doCreate()

File

src/Entity/Storage/FieldableEdgeEntityStorageBase.php, line 164

Class

FieldableEdgeEntityStorageBase
Base class for fieldable Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

protected function doCreate(array $values) {

  /** @var \Drupal\apigee_edge\Entity\FieldableEdgeEntityInterface $entity */
  $entity = parent::doCreate($values);
  $this
    ->initFieldValues($entity, $values);
  return $entity;
}