public function Loader::getForm in Form Builder 7.2
Get a form object.
File
- src/
Loader.php, line 128
Class
- Loader
- This class is a wrapper around all the hooks used for getting pluigns.
Namespace
Drupal\form_builderCode
public function getForm($form_type, $form_id, $sid, $form = array()) {
if (!isset($this->formTypeInfo[$form_type])) {
return FALSE;
}
$info = $this->formTypeInfo[$form_type];
$class = $info['class'];
return new $class($form_type, $form_id, $sid, $info, $form);
}