You are here

public function ScheduledTransitionsLocalTasks::__construct in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Derivative/ScheduledTransitionsLocalTasks.php \Drupal\scheduled_transitions\Plugin\Derivative\ScheduledTransitionsLocalTasks::__construct()

Creates a new ScheduledTransitionsLocalTask.

Parameters

string $base_plugin_id: The base plugin ID.

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

File

src/Plugin/Derivative/ScheduledTransitionsLocalTasks.php, line 44

Class

ScheduledTransitionsLocalTasks
Scheduled transitions tab for entities.

Namespace

Drupal\scheduled_transitions\Plugin\Derivative

Code

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