You are here

public function JsonapiHelperInterface::extractEntity in Entity Share 8.2

Same name and namespace in other branches
  1. 8.3 modules/entity_share_client/src/Service/JsonapiHelperInterface.php \Drupal\entity_share_client\Service\JsonapiHelperInterface::extractEntity()
  2. 8 modules/entity_share_client/src/Service/JsonapiHelperInterface.php \Drupal\entity_share_client\Service\JsonapiHelperInterface::extractEntity()

Helper function to unserialize an entity from the JSON:API response.

Parameters

array $data: An array of data.

Return value

\Drupal\Core\Entity\EntityInterface An unserialize entity.

1 method overrides JsonapiHelperInterface::extractEntity()
JsonapiHelper::extractEntity in modules/entity_share_client/src/Service/JsonapiHelper.php
Helper function to unserialize an entity from the JSON:API response.

File

modules/entity_share_client/src/Service/JsonapiHelperInterface.php, line 39

Class

JsonapiHelperInterface
Jsonapi helper interface methods.

Namespace

Drupal\entity_share_client\Service

Code

public function extractEntity(array $data);