You are here

public function ContentHasher::deleteHash in Tome 8

Deletes a content hash.

Parameters

string $content_name: The content name.

Overrides ContentHasherInterface::deleteHash

File

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

Class

ContentHasher
Hashes normalized content in the database.

Namespace

Drupal\tome_sync

Code

public function deleteHash($content_name) {
  $query = $this->database
    ->delete('tome_sync_content_hash');
  $query
    ->condition('name', $content_name);
  $query
    ->execute();
}