You are here

public function AddAppForDeveloperLocalAction::__construct in Apigee Edge 8

AddAppForDeveloperLocalAction constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider to load routes by name.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

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

Overrides LocalActionDefault::__construct

File

src/Plugin/Menu/AddAppForDeveloperLocalAction.php, line 61

Class

AddAppForDeveloperLocalAction
Defines an Add app local action with dynamic title.

Namespace

Drupal\apigee_edge\Plugin\Menu

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider);
  $this->developerAppEntity = $entity_type_manager
    ->getDefinition('developer_app');
  $this->stringTranslation = $string_translation;
}