You are here

public function ContentHasherEventSubscriber::__construct in Tome 8

Creates a ContentHasherEventSubscriber object.

Parameters

\Drupal\tome_sync\ContentHasherInterface $content_hasher: The content hasher.

\Drupal\Core\Config\FileStorage $content_storage: The target content storage.

File

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

Class

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

Namespace

Drupal\tome_sync\EventSubscriber

Code

public function __construct(ContentHasherInterface $content_hasher, FileStorage $content_storage) {
  $this->contentHasher = $content_hasher;
  $this->contentStorage = $content_storage;
}