public function BookEventSubscriber::__construct in Tome 8
Creates a BookEventSubscriber object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
File
- modules/
tome_sync/ src/ EventSubscriber/ BookEventSubscriber.php, line 53  
Class
- BookEventSubscriber
 - Event subscriber that keep book outlines in sync with content changes.
 
Namespace
Drupal\tome_sync\EventSubscriberCode
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_type_manager, FileSystemInterface $file_system) {
  $this->connection = $connection;
  $this->entityTypeManager = $entity_type_manager;
  $this->fileSystem = $file_system;
}