You are here

public function EntityDeleteForm::__construct in Entity Delete 8

EntityDeleteForm constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity Delete Constructor.

\Drupal\Core\Access\CsrfTokenGenerator $csrf_token: CSRF token generator.

File

src/Form/EntityDeleteForm.php, line 49

Class

EntityDeleteForm
Class EntityDeleteForm.

Namespace

Drupal\entity_delete\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, CsrfTokenGenerator $csrf_token) {
  $this->entityTypeManager = $entity_type_manager;
  $this->csrfToken = $csrf_token;
}