You are here

public static function ConfigTranslationLocalTasks::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php \Drupal\config_translation\Plugin\Derivative\ConfigTranslationLocalTasks::create()
  2. 9 core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php \Drupal\config_translation\Plugin\Derivative\ConfigTranslationLocalTasks::create()

File

core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php, line 45

Class

ConfigTranslationLocalTasks
Provides dynamic local tasks for config translation.

Namespace

Drupal\config_translation\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($base_plugin_id, $container
    ->get('plugin.manager.config_translation.mapper'));
}