function ContentTranslationLocalTasks::__construct

Same name and namespace in other branches
  1. 11.x core/modules/content_translation/src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\content_translation\Plugin\Derivative\ContentTranslationLocalTasks::__construct()
  2. 10 core/modules/content_translation/src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\content_translation\Plugin\Derivative\ContentTranslationLocalTasks::__construct()
  3. 9 core/modules/content_translation/src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\content_translation\Plugin\Derivative\ContentTranslationLocalTasks::__construct()
  4. 8.9.x core/modules/content_translation/src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\content_translation\Plugin\Derivative\ContentTranslationLocalTasks::__construct()

Constructs a new ContentTranslationLocalTasks.

Parameters

string $basePluginId: The base plugin ID.

\Drupal\content_translation\ContentTranslationManagerInterface $contentTranslationManager: The content translation manager.

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

File

core/modules/content_translation/src/Plugin/Derivative/ContentTranslationLocalTasks.php, line 28

Class

ContentTranslationLocalTasks
Provides dynamic local tasks for content translation.

Namespace

Drupal\content_translation\Plugin\Derivative

Code

public function __construct(protected $basePluginId, protected ContentTranslationManagerInterface $contentTranslationManager, TranslationInterface $string_translation) {
  $this->stringTranslation = $string_translation;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.