You are here

public function EntityTasksDeriver::__construct in Entity API 8

Constructs an entity local tasks deriver.

Parameters

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

File

src/Plugin/Derivative/EntityTasksDeriver.php, line 28

Class

EntityTasksDeriver
Derives local tasks for entity types.

Namespace

Drupal\entity\Plugin\Derivative

Code

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