You are here

public function Loader::fromStorage in Form Builder 7.2

Load a form from storage.

File

src/Loader.php, line 140

Class

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

Namespace

Drupal\form_builder

Code

public function fromStorage($form_type, $form_id, $sid = NULL) {
  if (!isset($this->formTypeInfo[$form_type])) {
    return FALSE;
  }
  $info = $this->formTypeInfo[$form_type];
  $class = $info['class'];
  return $class::loadFromStorage($form_type, $form_id, $sid, $info);
}