You are here

public function JobConfigLocalTask::getTitle in Lingotek Translation 3.6.x

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

Class

JobConfigLocalTask

Namespace

Drupal\lingotek\Plugin\Menu

Code

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