public function JsonapiHelperInterface::extractEntity in Entity Share 8
Same name and namespace in other branches
- 8.3 modules/entity_share_client/src/Service/JsonapiHelperInterface.php \Drupal\entity_share_client\Service\JsonapiHelperInterface::extractEntity()
- 8.2 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.
TODO: Should this method be removed from the interface?
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 35
Class
- JsonapiHelperInterface
- Remote manager interface methods.
Namespace
Drupal\entity_share_client\ServiceCode
public function extractEntity(array $data);