You are here

public function ScheduledTransitionsLocalActions::__construct in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/Derivative/ScheduledTransitionsLocalActions.php \Drupal\scheduled_transitions\Plugin\Derivative\ScheduledTransitionsLocalActions::__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/ScheduledTransitionsLocalActions.php, line 45

Class

ScheduledTransitionsLocalActions
Scheduled transitions actions 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;
}