interface EntityParserInterface in Entity Share 8.3
Entity parser interface methods.
Hierarchy
- interface \Drupal\entity_share_diff\Service\EntityParserInterface
Expanded class hierarchy of EntityParserInterface
All classes that implement EntityParserInterface
1 file declares its use of EntityParserInterface
- DiffGeneratorPluginBase.php in modules/entity_share_diff/ src/ DiffGenerator/ DiffGeneratorPluginBase.php 
File
- modules/entity_share_diff/ src/ Service/ EntityParserInterface.php, line 13 
Namespace
Drupal\entity_share_diff\ServiceView source
interface EntityParserInterface {
  /**
   * Prepares entity loaded from local database.
   *
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   *   A Drupal content entity.
   */
  public function prepareLocalEntity(ContentEntityInterface $entity);
  /**
   * Prepares entity loaded from remote by JSON:API.
   *
   * @param array $remote_data
   *   JSON:API data of a single entity.
   * @param \Drupal\entity_share_client\Entity\RemoteInterface $remote
   *   Entity share Remote config entity.
   */
  public function prepareRemoteEntity(array $remote_data, RemoteInterface $remote);
  /**
   * Determines if the entity has already been processed in the Diff.
   */
  public function validateNeedToProcess(string $uuid, bool $remote);
  /**
   * Gets 'changed' timestamp of remote entity, if available.
   *
   * @param array $remote_data
   *   JSON:API data of a single entity.
   */
  public function getRemoteChangedTime(array $remote_data);
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| EntityParserInterface:: | public | function | Gets 'changed' timestamp of remote entity, if available. | 1 | 
| EntityParserInterface:: | public | function | Prepares entity loaded from local database. | 1 | 
| EntityParserInterface:: | public | function | Prepares entity loaded from remote by JSON:API. | 1 | 
| EntityParserInterface:: | public | function | Determines if the entity has already been processed in the Diff. | 1 | 
