You are here

protected function TwigExtensionBase::getFormBuilder in Bamboo Twig 8.2

Same name and namespace in other branches
  1. 8.5 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getFormBuilder()
  2. 8.3 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getFormBuilder()
  3. 8.4 src/TwigExtension/TwigExtensionBase.php \Drupal\bamboo_twig\TwigExtension\TwigExtensionBase::getFormBuilder()

Provides an interface for form building and processing.

Return value

\Drupal\Core\Form\FormBuilderInterface Return the interface for form building and processing.

File

src/TwigExtension/TwigExtensionBase.php, line 57

Class

TwigExtensionBase
Provides a Twig Extension Lazy Service Injection.

Namespace

Drupal\bamboo_twig\TwigExtension

Code

protected function getFormBuilder() {
  return $this->container
    ->get('form_builder');
}