Habari\FormUI::register PHP Method

register() public static method

Register a function to use to create a new form
public static register ( string $name, Callable $build_callback )
$name string The name of the form to register
$build_callback Callable The method to call to customize a form instance (FormUI $form, string $name, string $form_type)
    public static function register($name, $build_callback)
    {
        self::$registered_forms[$name] = $build_callback;
    }