public function ContentHasher::__construct in Tome 8
Creates a ContentHasher object.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Core\Config\FileStorage $storage: The content storage.
File
- modules/
tome_sync/ src/ ContentHasher.php, line 35
Class
- ContentHasher
- Hashes normalized content in the database.
Namespace
Drupal\tome_syncCode
public function __construct(Connection $database, FileStorage $storage) {
$this->database = $database;
$this->storage = $storage;
}