Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationLocalTasks.php

function ContentTranslationLocalTasks::__construct

Constructs a new ContentTranslationLocalTasks.

Parameters

string $base_plugin_id: The base plugin ID.

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

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

File

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

Class

ContentTranslationLocalTasks
Provides dynamic local tasks for content translation.

Namespace

Drupal\content_translation\Plugin\Derivative

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal