You are here

protected function ContentHasher::getContentHashes in Tome 8

Gets the content hashes from the database.

Return value

array An associative array mapping content names to hashes.

2 calls to ContentHasher::getContentHashes()
ContentHasher::getChangelist in modules/tome_sync/src/ContentHasher.php
Get a list of changed content.
ContentHasher::hashesExist in modules/tome_sync/src/ContentHasher.php
Validates that hashes exist.

File

modules/tome_sync/src/ContentHasher.php, line 104

Class

ContentHasher
Hashes normalized content in the database.

Namespace

Drupal\tome_sync

Code

protected function getContentHashes() {
  return $this->database
    ->select('tome_sync_content_hash')
    ->fields('tome_sync_content_hash', [
    'name',
    'hash',
  ])
    ->execute()
    ->fetchAllKeyed(0);
}