You are here

JsonapiHelperInterface.php in Entity Share 8.3

File

modules/entity_share_client/src/Service/JsonapiHelperInterface.php
View source
<?php

declare (strict_types=1);
namespace Drupal\entity_share_client\Service;


/**
 * Jsonapi helper interface methods.
 */
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);

}

Interfaces

Namesort descending Description
JsonapiHelperInterface Jsonapi helper interface methods.