LingotekContentTranslationController.php in Lingotek Translation 3.4.x
Same filename and directory in other branches
- 8 src/Controller/LingotekContentTranslationController.php
- 8.2 src/Controller/LingotekContentTranslationController.php
- 4.0.x src/Controller/LingotekContentTranslationController.php
- 3.0.x src/Controller/LingotekContentTranslationController.php
- 3.1.x src/Controller/LingotekContentTranslationController.php
- 3.2.x src/Controller/LingotekContentTranslationController.php
- 3.3.x src/Controller/LingotekContentTranslationController.php
- 3.5.x src/Controller/LingotekContentTranslationController.php
- 3.6.x src/Controller/LingotekContentTranslationController.php
- 3.7.x src/Controller/LingotekContentTranslationController.php
- 3.8.x src/Controller/LingotekContentTranslationController.php
Namespace
Drupal\lingotek\ControllerFile
src/Controller/LingotekContentTranslationController.phpView source
<?php
namespace Drupal\lingotek\Controller;
use Drupal\content_translation\Controller\ContentTranslationController;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\lingotek\Form\LingotekContentTranslationForm;
/**
* Override default translate page for Content Entities.
*/
class LingotekContentTranslationController extends ContentTranslationController {
/**
* {@inheritdoc}
*/
public function overview(RouteMatchInterface $route_match, $entity_type_id = NULL) {
$build = parent::overview($route_match, $entity_type_id);
return \Drupal::formBuilder()
->getForm(LingotekContentTranslationForm::class, $build);
}
}
Classes
Name | Description |
---|---|
LingotekContentTranslationController | Override default translate page for Content Entities. |