You are here

public static function ContentTranslationMenuLinks::create in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  2. 3.0.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  3. 3.1.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  4. 3.2.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  5. 3.3.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  6. 3.4.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  7. 3.5.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  8. 3.6.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  9. 3.7.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::create()
  10. 3.8.x src/Plugin/Derivative/ContentTranslationMenuLinks.php \Drupal\lingotek\Plugin\Derivative\ContentTranslationMenuLinks::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/ContentTranslationMenuLinks.php, line 48

Class

ContentTranslationMenuLinks
Provides dynamic menu links 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'));
}