public function AddAppForTeamLocalAction::__construct in Apigee Edge 8
AddAppForTeamLocalAction 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
- modules/
apigee_edge_teams/ src/ Plugin/ Menu/ AddAppForTeamLocalAction.php, line 61
Class
- AddAppForTeamLocalAction
- Defines an Add app local action with dynamic title.
Namespace
Drupal\apigee_edge_teams\Plugin\MenuCode
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->teamAppEntity = $entity_type_manager
->getDefinition('team_app');
$this->stringTranslation = $string_translation;
}