You are here

public function AddAppForDeveloperLocalAction::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

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

Class

AddAppForDeveloperLocalAction
Defines an Add app local action with dynamic title.

Namespace

Drupal\apigee_edge\Plugin\Menu

Code

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