Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocalTaskDefault.php

function LocalTaskDefault::getTitle

Overrides LocalTaskInterface::getTitle

2 methods override LocalTaskDefault::getTitle()
ConfigTranslationLocalTask::getTitle in core/modules/config_translation/src/Plugin/Menu/LocalTask/ConfigTranslationLocalTask.php
Returns the localized title to be shown for this tab.
UnapprovedComments::getTitle in core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php
Returns the localized title to be shown for this tab.

File

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

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'];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal