Framework/Form/Element/Fieldset.php
protected function checkbox($name, $label = null, $value = null, $note = null) {
		$data = is_array($value) ? $value + ['note' => $note] : (
			is_bool($value)
			? ['checked' => $value, 'note' => $note]
			: ['note' => $value]
		);
		return $this->field($name, Checkbox::class, $label, [
			'checked' => Checkbox::b($this->v($name), df_bool(dfa($data, 'checked')))
		] + $data);
	}
protected function checkbox($name, $label = null, $value = null, $note = null) {
		$data = is_array($value) ? $value + ['note' => $note] : (
			is_bool($value)
			? ['checked' => $value, 'note' => $note]
			: ['note' => $value]
		);
		return $this->field($name, Checkbox::class, $label, [
			'checked' => Checkbox::b($this->v($name), df_bool(dfa($data, 'checked')))
		] + $data);
	}
protected function checkbox ( $ name , $ label = null , $ value = null , $ note = null ) { $ data = is_array ( $ value ) ? $ value + [ 'note' => $ note ] : ( is_bool ( $ value ) ? [ 'checked' => $ value , 'note' => $ note ] : [ 'note' => $ value ] ) ; return $ this -> field ( $ name , Checkbox :: class , $ label , [ 'checked' => Checkbox :: b ( $ this -> v ( $ name ) , df_bool ( dfa ( $ data , 'checked' ) ) ) ] + $ data ) ; }
2015-11-17
@param string $name
@param string|null|Phrase $label [optional]
@param array(string => mixed)|bool|string $value [optional]
@param string|null $note [optional]
@return \Magento\Framework\Data\Form\Element\Checkbox|E
2015 - 11 - 17