You are here

public function Loader::loadForm in Bamboo Twig 8

Load a given block with or whitout parameters.

File

bamboo_twig_loaders/src/TwigExtension/Loader.php, line 102

Class

Loader
Provides a 'Loader' Twig Extensions.

Namespace

Drupal\bamboo_twig_loaders\TwigExtension

Code

public function loadForm($module, $form, $params = []) {
  return $this->formBuilder
    ->getForm('Drupal\\' . $module . '\\Form\\' . $form, $params);
}