public function PreviewLinkTasks::__construct in Preview Link 8
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/ PreviewLinkTasks.php, line 44
Class
- PreviewLinkTasks
- Preview link task generation.
Namespace
Drupal\preview_link\Plugin\DerivativeCode
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;
}