You are here

public function DeleteActionDeriver::__construct in Entity API 8

Same name and namespace in other branches
  1. 8.0 src/Plugin/Action/Derivative/DeleteActionDeriver.php \Drupal\entity\Plugin\Action\Derivative\DeleteActionDeriver::__construct()

Constructs a new DeleteActionDeriver object.

Parameters

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

File

src/Plugin/Action/Derivative/DeleteActionDeriver.php, line 31

Class

DeleteActionDeriver
Provides a delete action for each content entity type.

Namespace

Drupal\entity\Plugin\Action\Derivative

Code

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