src/Form/FormElement.php
public static function custom($id, $input)
    {
        return (new static($id))->setInput($input instanceof BasicFormElement ? $input : new $input($id));
    }
public static function custom($id, $input)
    {
        return (new static($id))->setInput($input instanceof BasicFormElement ? $input : new $input($id));
    }
public static function custom ( $ id , $ input ) { return ( new static ( $ id ) ) -> setInput ( $ input instanceof BasicFormElement ? $ input : new $ input ( $ id ) ) ; }
Create a custom Form element.

@param $id
@param mixed string|BasicFormElement $input

@return mixed
Create a custom Form element .