src/Modal.php
public function setOptions($options)
    {
        if (isset($this->options['modal_option'])) {
            $this->options['modal_option'] = array_merge($this->options['modal_option'], $options);
        } else {
            $this->options['modal_option'] = $options;
        }

        return $this;
    }
public function setOptions($options)
    {
        if (isset($this->options['modal_option'])) {
            $this->options['modal_option'] = array_merge($this->options['modal_option'], $options);
        } else {
            $this->options['modal_option'] = $options;
        }

        return $this;
    }
public function setOptions ( $ options ) { if ( isset ( $ this -> options [ 'modal_option' ] ) ) { $ this -> options [ 'modal_option' ] = array_merge ( $ this -> options [ 'modal_option' ] , $ options ) ; } else { $ this -> options [ 'modal_option' ] = $ options ; } return $ this ; }
Set modal options passing an array.

@param $options

@return $this
Set modal options passing an array .