You are here

public function JobContentLocalTask::getTitle in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  2. 4.0.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  3. 3.0.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  4. 3.2.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  5. 3.3.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  6. 3.4.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  7. 3.5.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  8. 3.6.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  9. 3.7.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::getTitle()
  10. 3.8.x src/Plugin/Menu/JobContentLocalTask.php \Drupal\lingotek\Plugin\Menu\JobContentLocalTask::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/JobContentLocalTask.php, line 17

Class

JobContentLocalTask

Namespace

Drupal\lingotek\Plugin\Menu

Code

public function getTitle(Request $request = NULL) {
  $job_id = $request
    ->get('job_id');
  return $this
    ->t('Job @job_id Content', [
    '@job_id' => $job_id,
  ]);
}