public function options(array $options = null, $merge = true)
    {
        deprecationWarning('ViewBuilder::options() is deprecated. Use ViewBuilder::setOptions() or ViewBuilder::getOptions() instead.');
        if ($options !== null) {
            return $this->setOptions($options, $merge);
        }

        return $this->getOptions();
    }
public function options(array $options = null, $merge = true)
    {
        deprecationWarning('ViewBuilder::options() is deprecated. Use ViewBuilder::setOptions() or ViewBuilder::getOptions() instead.');
        if ($options !== null) {
            return $this->setOptions($options, $merge);
        }

        return $this->getOptions();
    }
public function options ( array $ options = null , $ merge = true ) { deprecationWarning ( 'ViewBuilder::options() is deprecated. Use ViewBuilder::setOptions() or ViewBuilder::getOptions() instead.' ) ; if ( $ options !== null ) { return $ this -> setOptions ( $ options , $ merge ) ; } return $ this -> getOptions ( ) ; }
Set additional options for the view.

This lets you provide custom constructor arguments to application/plugin view classes.

@deprecated 3.4.0 Use setOptions()/getOptions() instead.
@param array|null $options Either an array of options or null to get current options.
@param bool $merge Whether or not to merge existing data with the new data.
@return array|$this
Set additional options for the view .