Esempio n. 1
0
 /**
  * @internal
  */
 protected function _render($id, $option, $data)
 {
     $option['attr']['class'] .= ' fw-option-width-short';
     return parent::_render($id, $option, $data);
 }
Esempio n. 2
0
 /**
  * Restrict option save if the option value is same as the one in the database
  * @inheritdoc
  */
 protected function _storage_save($id, array $option, $value, array $params)
 {
     if ($value == self::$original_value) {
         return $value;
     }
     return parent::_storage_save($id, $option, $value, $params);
 }