You are here

public function WebformSanitizeSubmissionsCommands::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Commands/WebformSanitizeSubmissionsCommands.php \Drupal\webform\Commands\WebformSanitizeSubmissionsCommands::__construct()

WebformSanitizeSubmissionsCommands constructor.

Parameters

\Drupal\Core\Database\Connection $database: The database.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Commands/WebformSanitizeSubmissionsCommands.php, line 51

Class

WebformSanitizeSubmissionsCommands
Drush sql-sanitize plugin for sanitizing (truncating) webform submissions.

Namespace

Drupal\webform\Commands

Code

public function __construct(Connection $database, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct();
  $this->database = $database;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
}