src/Html/FormBuilder.php
protected function checkable($type, $name, $value, $checked, $options)
    {
        $checked = $this->getCheckedState($type, $name, $value, $checked);

        if ($checked) {
            $options['checked'] = 'checked';
        }

        return $this->input($type, $name, $value, $options);
    }
protected function checkable($type, $name, $value, $checked, $options)
    {
        $checked = $this->getCheckedState($type, $name, $value, $checked);

        if ($checked) {
            $options['checked'] = 'checked';
        }

        return $this->input($type, $name, $value, $options);
    }
protected function checkable ( $ type , $ name , $ value , $ checked , $ options ) { $ checked = $ this -> getCheckedState ( $ type , $ name , $ value , $ checked ) ; if ( $ checked ) { $ options [ 'checked' ] = 'checked' ; } return $ this -> input ( $ type , $ name , $ value , $ options ) ; }
Create a checkable input field.

@param string $type
@param string $name
@param mixed  $value
@param bool   $checked
@param array  $options

@return string
Create a checkable input field .