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