/** * get Options transformed * * @return array */ protected function getOptions() { $options = $this->options ? $this->options->toArray() : []; if ($this->topic && !$this->topic->hasOnlyOneTopic()) { $options = array_merge($options, $this->topic->build()); } return $options; }