You are here

public function StateInformationInterface::getStatusInfo in Entity Share 8.3

Same name and namespace in other branches
  1. 8.2 modules/entity_share_client/src/Service/StateInformationInterface.php \Drupal\entity_share_client\Service\StateInformationInterface::getStatusInfo()

Check if an entity already exists or not and get status info.

Default implementation is to compare revision timestamp.

Parameters

array $data: The data of a single entity from the JSON:API payload.

Return value

array Returns an array of info:

  • label: the label to display.
  • class: to add a class on a row.
  • info_id: an identifier of the status info.
  • local_entity_link: the link of the local entity if it exists.
  • local_revision_id: the revision ID of the local entity if it exists.
1 method overrides StateInformationInterface::getStatusInfo()
StateInformation::getStatusInfo in modules/entity_share_client/src/Service/StateInformation.php
Check if an entity already exists or not and get status info.

File

modules/entity_share_client/src/Service/StateInformationInterface.php, line 61

Class

StateInformationInterface
Remote manager interface methods.

Namespace

Drupal\entity_share_client\Service

Code

public function getStatusInfo(array $data);