public function DeleteContent::__construct in Drush Delete All 3.x
Same name and namespace in other branches
- 8.2 src/DeleteContent.php \Drupal\drush_delete\DeleteContent::__construct()
DeleteContent constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager object.
\Drupal\Core\Database\Connection $connection: The Connection object containing the key-value tables.
File
- src/
DeleteContent.php, line 42
Class
- DeleteContent
- Delete content service class.
Namespace
Drupal\drush_deleteCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $connection) {
$this->saysomething = 'Hello World!';
$this->entityTypeManager = $entity_type_manager;
$this->connection = $connection;
}