You are here

public function DeleteActionDeriver::__construct in Entity API 8.0

Same name and namespace in other branches
  1. 8 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 35
Contains \Drupal\entity\Plugin\Action\Derivative\DeleteActionDeriver.

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;
}