You are here

public function EntityUsageLocalTask::__construct in Entity Usage 8.4

Same name and namespace in other branches
  1. 8 src/Plugin/Derivative/EntityUsageLocalTask.php \Drupal\entity_usage\Plugin\Derivative\EntityUsageLocalTask::__construct()
  2. 8.2 src/Plugin/Derivative/EntityUsageLocalTask.php \Drupal\entity_usage\Plugin\Derivative\EntityUsageLocalTask::__construct()
  3. 8.3 src/Plugin/Derivative/EntityUsageLocalTask.php \Drupal\entity_usage\Plugin\Derivative\EntityUsageLocalTask::__construct()

Creates an EntityUsageLocalTask object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config: The config factory service.

File

src/Plugin/Derivative/EntityUsageLocalTask.php, line 41

Class

EntityUsageLocalTask
Provides local task definitions for all entity types.

Namespace

Drupal\entity_usage\Plugin\Derivative

Code

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