You are here

protected function TeamContextSwitcherBlock::getAdditionalLinks in Apigee Edge 8

Returns an array of additional links for the switcher.

Return value

array An array of additional links keyed with the route name.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to TeamContextSwitcherBlock::getAdditionalLinks()
TeamContextSwitcherBlock::build in modules/apigee_edge_teams/src/Plugin/Block/TeamContextSwitcherBlock.php
Builds and returns the renderable array for this block plugin.

File

modules/apigee_edge_teams/src/Plugin/Block/TeamContextSwitcherBlock.php, line 211

Class

TeamContextSwitcherBlock
Provides a block for switching team context.

Namespace

Drupal\apigee_edge_teams\Plugin\Block

Code

protected function getAdditionalLinks() {
  return [
    'entity.team.collection' => $this
      ->t('My @teams', [
      '@teams' => $this->entityTypeManager
        ->getDefinition('team')
        ->getPluralLabel(),
    ]),
  ];
}