LocalTaskDefault::getTitle

public LocalTaskDefault::getTitle(Request $request = NULL)

Returns the localized title to be shown for this tab.

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

Return value

string The title of the local task.

Overrides LocalTaskInterface::getTitle

File

core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 77

Class

LocalTaskDefault
Default object used for LocalTaskPlugins.

Namespace

Drupal\Core\Menu

Code

public function getTitle(Request $request = NULL) {
  // The title from YAML file discovery may be a TranslatableMarkup object.
  return (string) $this->pluginDefinition['title'];
}
doc_Drupal
2016-10-29 09:24:45
Comments
Leave a Comment

Please login to continue.