public function modal($html, $type = Modal::DEFAULT_TYPE)
    {
        $modal = new Modal($html, $type);
        $this->register($modal);

        return $modal;
    }
public function modal($html, $type = Modal::DEFAULT_TYPE)
    {
        $modal = new Modal($html, $type);
        $this->register($modal);

        return $modal;
    }
public function modal ( $ html , $ type = Modal :: DEFAULT_TYPE ) { $ modal = new Modal ( $ html , $ type ) ; $ this -> register ( $ modal ) ; return $ modal ; }
Create a Modal and register it to the queue

Convenience method to allow for a fluent interface

@var string html
@var string type
@return Modal
Create a Modal and register it to the queue