You are here

public function EntityParser::validateNeedToProcess in Entity Share 8.3

Determines if the entity has already been processed in the Diff.

Overrides EntityParserInterface::validateNeedToProcess

File

modules/entity_share_diff/src/Service/EntityParser.php, line 159

Class

EntityParser
Entity parser.

Namespace

Drupal\entity_share_diff\Service

Code

public function validateNeedToProcess(string $uuid, bool $remote) {
  $main_key = $remote ? 'remote' : 'local';
  if (!in_array($uuid, $this->processedEntities[$main_key])) {
    $this->processedEntities[$main_key][] = $uuid;
    return TRUE;
  }
  return FALSE;
}