public function run() { $this->registerPlugin('accordion'); if ($this->inverted) { UI::addCssClasses($this->options, self::TYPE_INVERTED); echo UI::segment(Html::tag('div', $this->renderItems(), $this->options, ['class' => self::TYPE_INVERTED])); } else { echo Html::tag('div', $this->renderItems(), $this->options); } }