JobContentLocalTask.php in Lingotek Translation 3.4.x
Same filename and directory in other branches
- 8.2 src/Plugin/Menu/JobContentLocalTask.php
- 4.0.x src/Plugin/Menu/JobContentLocalTask.php
- 3.0.x src/Plugin/Menu/JobContentLocalTask.php
- 3.1.x src/Plugin/Menu/JobContentLocalTask.php
- 3.2.x src/Plugin/Menu/JobContentLocalTask.php
- 3.3.x src/Plugin/Menu/JobContentLocalTask.php
- 3.5.x src/Plugin/Menu/JobContentLocalTask.php
- 3.6.x src/Plugin/Menu/JobContentLocalTask.php
- 3.7.x src/Plugin/Menu/JobContentLocalTask.php
- 3.8.x src/Plugin/Menu/JobContentLocalTask.php
Namespace
Drupal\lingotek\Plugin\MenuFile
src/Plugin/Menu/JobContentLocalTask.phpView source
<?php
namespace Drupal\lingotek\Plugin\Menu;
use Drupal\Core\Menu\LocalTaskDefault;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\HttpFoundation\Request;
class JobContentLocalTask extends LocalTaskDefault {
use StringTranslationTrait;
public function getRouteName() {
return 'lingotek.translation_job_info.content';
}
public function getTitle(Request $request = NULL) {
$job_id = $request
->get('job_id');
return $this
->t('Job @job_id Content', [
'@job_id' => $job_id,
]);
}
}
Classes
Name | Description |
---|---|
JobContentLocalTask |