public function EntityParser::prepareRemoteEntity in Entity Share 8.3
Prepares entity loaded from remote by JSON:API.
Parameters
array $remote_data: JSON:API data of a single entity.
\Drupal\entity_share_client\Entity\RemoteInterface $remote: Entity share Remote config entity.
Overrides EntityParserInterface::prepareRemoteEntity
File
- modules/
entity_share_diff/ src/ Service/ EntityParser.php, line 150
Class
- EntityParser
- Entity parser.
Namespace
Drupal\entity_share_diff\ServiceCode
public function prepareRemoteEntity(array $remote_data, RemoteInterface $remote) {
$this
->setRemote($remote);
$remote_entity = $this->jsonapiHelper
->extractEntity($remote_data);
return $this
->parseEntity($remote_entity, $remote_data);
}