You are here

public function FormBuilderLoader::getElement in Form Builder 7

Get element instance.

File

./form_builder.classes.inc, line 176

Class

FormBuilderLoader
This class is a wrapper around all the hooks used for getting pluigns.

Code

public function getElement($form_type, $form_id, $element_type, $form, &$element) {
  $infos = $this
    ->getElementTypeInfo($form_type, $form_id);
  $info = $infos[$element_type];
  $class = $info['class'];
  return new $class($form, $info, $element, $this);
}