You are here

public static function ContentTranslationLocalTasks::create in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  2. 4.0.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  3. 3.0.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  4. 3.1.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  5. 3.2.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  6. 3.3.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  7. 3.4.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  8. 3.5.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  9. 3.6.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  10. 3.7.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()
  11. 3.8.x src/Plugin/Derivative/ContentTranslationLocalTasks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks::create()

Creates a new class instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.

string $base_plugin_id: The base plugin ID for the plugin ID.

Return value

static Returns an instance of this fetcher.

Overrides ContainerDeriverInterface::create

File

src/Plugin/Derivative/ContentTranslationLocalTasks.php, line 54
Contains \Drupal\lingotek\Plugin\Derivative\ContentTranslationLocalTasks.

Class

ContentTranslationLocalTasks
Provides dynamic local tasks for Lingotek content translation management.

Namespace

Drupal\lingotek\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($base_plugin_id, $container
    ->get('lingotek.configuration'));
}