You are here

public function LingotekContentTranslationController::overview in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 8 src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  2. 8.2 src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  3. 3.0.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  4. 3.1.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  5. 3.2.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  6. 3.3.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  7. 3.4.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  8. 3.5.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  9. 3.6.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  10. 3.7.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()
  11. 3.8.x src/Controller/LingotekContentTranslationController.php \Drupal\lingotek\Controller\LingotekContentTranslationController::overview()

Builds the translations overview page.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

string $entity_type_id: (optional) The entity type ID.

Return value

array Array of page elements to render.

Overrides ContentTranslationController::overview

File

src/Controller/LingotekContentTranslationController.php, line 17

Class

LingotekContentTranslationController
Override default translate page for Content Entities.

Namespace

Drupal\lingotek\Controller

Code

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);
}