/** * {@inheritDoc} */ public function getAttributes() { return array_merge(parent::getAttributes(), array('value' => $this->getOption('value'), 'checked' => (string) $this->getDisplayedData() !== '' && $this->getDisplayedData() !== 0)); }
/** * {@inheritDoc} */ public function getAttributes(array $attributes = array()) { return array_merge(parent::getAttributes(), array('type' => 'text')); }