Esempio n. 1
0
 /**
  * prepareAttributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return array
  */
 protected function prepareAttributes(array $attrs)
 {
     $attrs = parent::prepareAttributes($attrs);
     if ($this->isChecked()) {
         $attrs['checked'] = 'checked';
     }
     return $attrs;
 }