public static function FormBase::load in Form Builder 7.2
File
- src/
FormBase.php, line 46
Class
Namespace
Drupal\form_builderCode
public static function load($form_type, $form_id, $sid, $params) {
ctools_include('object-cache');
$obj = "{$form_type}:{$form_id}";
$form = ctools_object_cache_get($obj, self::CACHE_NAME, FALSE, $sid);
if ($form && is_array($form)) {
$form = new static($form_type, $form_id, $sid, $params, $form);
}
return $form;
}