You are here

public function ContentHasherEventSubscriber::deleteHash in Tome 8

Maintains a hash of imported content to support partial imports.

Parameters

\Drupal\tome_sync\Event\ContentCrudEvent $event: The content CRUD event.

File

modules/tome_sync/src/EventSubscriber/ContentHasherEventSubscriber.php, line 84

Class

ContentHasherEventSubscriber
Event subscriber that keeps the content hash table up to date.

Namespace

Drupal\tome_sync\EventSubscriber

Code

public function deleteHash(ContentCrudEvent $event) {
  $entity = $event
    ->getContent();
  $content_name = TomeSyncHelper::getContentName($entity);
  $this->contentHasher
    ->deleteHash($content_name);
}