Drupal::formBuilder

public static Drupal::formBuilder()

Returns the form builder service.

Return value

\Drupal\Core\Form\FormBuilderInterface The form builder.

File

core/lib/Drupal.php, line 638
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function formBuilder() {
  return static::getContainer()->get('form_builder');
}
doc_Drupal
2016-10-29 09:02:45
Comments
Leave a Comment

Please login to continue.