You are here

public function AddAppForTeamLocalAction::getTitle in Apigee Edge 8

Returns the localized title to be shown for this action.

Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver.

Return value

string The title to be shown for this action.

Overrides LocalActionDefault::getTitle

See also

\Drupal\Core\Menu\LocalActionManager::getTitle()

File

modules/apigee_edge_teams/src/Plugin/Menu/AddAppForTeamLocalAction.php, line 84

Class

AddAppForTeamLocalAction
Defines an Add app local action with dynamic title.

Namespace

Drupal\apigee_edge_teams\Plugin\Menu

Code

public function getTitle(Request $request = NULL) {
  return $this
    ->t('Add @app', [
    '@app' => mb_strtolower($this->teamAppEntity
      ->getSingularLabel()),
  ]);
}