You are here

public function TotalControlMenuLink::__construct in Total Control Admin Dashboard 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Derivative/TotalControlMenuLink.php \Drupal\total_control\Plugin\Derivative\TotalControlMenuLink::__construct()

Creates a Total Control Menu Link instance.

Parameters

string $base_plugin_id: Base plugin id.

Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Plugin/Derivative/TotalControlMenuLink.php, line 36

Class

TotalControlMenuLink
Represents a menu link for a Total Control Menu Link.

Namespace

Drupal\total_control\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->entityTypeManager = $entity_type_manager;
  $this
    ->setStringTranslation($string_translation);
}