PHP Class Neos\Media\ViewHelpers\Form\CheckboxViewHelper

= Examples = (depending on $object) (depending on property "interests")
Inheritance: extends Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormFieldViewHelper
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$tagName string

Public Methods

Method Description
initializeArguments ( ) : void Initialize the arguments.
render ( boolean $checked = null, boolean $multiple = null ) : string Renders the checkbox.

Protected Methods

Method Description
getNameWithoutPrefix ( ) : string Get the name of this form element, without prefix.

Method Details

getNameWithoutPrefix() protected method

This is done to prevent the extra __identity being added for objects since it leading to property mapping errors and it works without it.
protected getNameWithoutPrefix ( ) : string
return string name

initializeArguments() public method

Initialize the arguments.
public initializeArguments ( ) : void
return void

render() public method

This is changed to use the actual provided value of the value attribute to support selecting object values.
public render ( boolean $checked = null, boolean $multiple = null ) : string
$checked boolean Specifies that the input element should be preselected
$multiple boolean Specifies whether this checkbox belongs to a multivalue (is part of a checkbox group)
return string

Property Details

$tagName protected property

protected string $tagName
return string