You are here

public function ContentDelete::__construct in Delete all 8

Same name and namespace in other branches
  1. 2.x src/Form/ContentDelete.php \Drupal\delete_all\Form\ContentDelete::__construct()

File

src/Form/ContentDelete.php, line 21

Class

ContentDelete
Create a Form for deleting all content.

Namespace

Drupal\delete_all\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager) {
  $this->nodeType = $entityTypeManager
    ->getStorage('node_type');
}