You are here

public function EntityStatus::getTitle in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 2.1.x src/Plugin/Menu/LocalTask/EntityStatus.php \Drupal\cms_content_sync\Plugin\Menu\LocalTask\EntityStatus::getTitle()

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 LocalTaskDefault::getTitle

File

src/Plugin/Menu/LocalTask/EntityStatus.php, line 16

Class

EntityStatus
Local task plugin to render dynamic tab title dynamically.

Namespace

Drupal\cms_content_sync\Plugin\Menu\LocalTask

Code

public function getTitle(Request $request = null) {
  return _cms_content_sync_get_repository_name();
}