You are here

interface JsonapiHelperInterface in Entity Share 8.3

Same name and namespace in other branches
  1. 8 modules/entity_share_client/src/Service/JsonapiHelperInterface.php \Drupal\entity_share_client\Service\JsonapiHelperInterface
  2. 8.2 modules/entity_share_client/src/Service/JsonapiHelperInterface.php \Drupal\entity_share_client\Service\JsonapiHelperInterface

Jsonapi helper interface methods.

Hierarchy

Expanded class hierarchy of JsonapiHelperInterface

All classes that implement JsonapiHelperInterface

1 file declares its use of JsonapiHelperInterface
EntityParser.php in modules/entity_share_diff/src/Service/EntityParser.php

File

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

Namespace

Drupal\entity_share_client\Service
View source
interface JsonapiHelperInterface {

  /**
   * Helper function to unserialize an entity from the JSON:API response.
   *
   * @param array $data
   *   An array of data.
   *
   * @return \Drupal\Core\Entity\EntityInterface
   *   An unserialize entity.
   */
  public function extractEntity(array $data);

}

Members

Namesort descending Modifiers Type Description Overrides
JsonapiHelperInterface::extractEntity public function Helper function to unserialize an entity from the JSON:API response. 1