You are here

protected function LingotekControllerBase::getLingotekForm in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 8 src/Controller/LingotekControllerBase.php \Drupal\lingotek\Controller\LingotekControllerBase::getLingotekForm()

Return a Lingotek form (convenience function)

Parameters

string $local_form_path: The form class name.

Return value

array The form array.

Deprecated

in 8.x-2.10. Use FormBuilderInterface::getForm() instead.

File

src/Controller/LingotekControllerBase.php, line 121

Class

LingotekControllerBase
Base class for handling all Lingotek-related routes.

Namespace

Drupal\lingotek\Controller

Code

protected function getLingotekForm($local_form_path) {
  return $this->formBuilder
    ->getForm('\\Drupal\\lingotek\\Form\\' . $local_form_path, $this->request);
}