/**
* Set the options
*
* @param array|Registry $options Array / Registry object with the options to load
*
* @return BaseLayout Instance of $this to allow chaining.
*
* @since 3.2
*/
public function setOptions($options = null)
{
// Received Registry
if ($options instanceof Registry) {
$this->options = $options;
} elseif (\is_array($options)) {
$this->options = new Registry($options);
} else {
$this->options = new Registry();
}
return $this;
}