src/Charcoal/Admin/Widget/DocWidget.php
public function setDisplayOptions(array $options)
    {
        if (!is_array($options)) {
            throw new \RuntimeException('The display options must be an associative array.');
        }

        $this->displayOptions = array_merge($this->defaultDisplayOptions(), $options);

        return $this;
    }
public function setDisplayOptions(array $options)
    {
        if (!is_array($options)) {
            throw new \RuntimeException('The display options must be an associative array.');
        }

        $this->displayOptions = array_merge($this->defaultDisplayOptions(), $options);

        return $this;
    }
public function setDisplayOptions ( array $ options ) { if ( ! is_array ( $ options ) ) { throw new \ RuntimeException ( 'The display options must be an associative array.' ) ; } $ this -> displayOptions = array_merge ( $ this -> defaultDisplayOptions ( ) , $ options ) ; return $ this ; }
Set the display options for the widget.

@param  array $options Display configuration.
@throws \RuntimeException If the display options are not an associative array.
@return self
Set the display options for the widget .