You are here

public static function EdgeEntityInterface::createFrom in Apigee Edge 8

Creates a Drupal entity from an SDK Entity.

Parameters

\Apigee\Edge\Entity\EntityInterface $entity: Entity from the PHP SDK.

Return value

\Drupal\apigee_edge\Entity\EdgeEntityInterface Drupal entity that decorates the SDK entity.

1 method overrides EdgeEntityInterface::createFrom()
EdgeEntityBase::createFrom in src/Entity/EdgeEntityBase.php
Creates a Drupal entity from an SDK Entity.

File

src/Entity/EdgeEntityInterface.php, line 43

Class

EdgeEntityInterface
Interface EdgeEntityInterface.

Namespace

Drupal\apigee_edge\Entity

Code

public static function createFrom(SdkEntityInterface $entity) : self;