You are here

public function DynamicLocalTasks::__construct in CiviCRM Entity 8.3

Creates an FieldUiLocalTask object.

Parameters

string $base_plugin_id: The base plugin ID.

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

File

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

Class

DynamicLocalTasks
Generates moderation-related local tasks.

Namespace

Drupal\civicrm_entity\Plugin\Derivative

Code

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