/** * getAttributes * * @return array */ protected function getAttributes() { $attributes = parent::getAttributes(); $attributes['data-codemirror-mode'] = $this->getParam(static::PARAM_CODE_MODE); return $attributes; }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(static::PARAM_STYLE => new \XLite\Model\WidgetParam\String('Style', $this->getDefaultStyle())); }