/** * Get common attributes * * @return array */ protected function getCommonAttributes() { $list = parent::getCommonAttributes(); $list['value'] = 1; return $list; }
/** * getWrapperClass * * @return array */ public function getWrapperClass() { $class = parent::getWrapperClass(); $class .= $this->getValue() ? ' checked' : ''; return $class; }