public function WebformSanitizeSubmissionsCommands::__construct in Webform 8.5
Same name and namespace in other branches
- 6.x 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\CommandsCode
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;
}