‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Element\CheckboxLabeledToggleElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\CheckboxLabeledToggleElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

array render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 injectNodeFactory (NodeFactory $nodeFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Protected Member Functions

string renderSingleCheckboxElement ($label, $itemCounter, $formElementValue, $numberOfItems, $additionalInformation, $disabled)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 renderLabel (string $for)
 
 wrapWithFieldsetAndLegend (string $innerHTML)
 
 hasNullCheckboxButNoPlaceholder ()
 
 hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
 resolveJavaScriptEvaluation (array $resultArray, string $name, ?object $evalObject)
 
string checkBoxParams (string $itemName, int $formElementValue, int $checkbox, int $checkboxesCount, array $fieldChangeFuncs=[], bool $invert=false)
 
 calculateColumnMarkup (int $cols)
 
 appendValueToLabelInDebugMode (string|int $label, string|int $value)
 
 getLanguageService ()
 
 getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
array $defaultFieldWizard
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
NodeFactory $nodeFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Detailed Description

Render elements of TCA type="check" with renderType="checkboxLabeledToggle".

Definition at line 25 of file CheckboxLabeledToggleElement.php.

Member Function Documentation

◆ render()

◆ renderSingleCheckboxElement()

string TYPO3\CMS\Backend\Form\Element\CheckboxLabeledToggleElement::renderSingleCheckboxElement (   $label,
  $itemCounter,
  $formElementValue,
  $numberOfItems,
  $additionalInformation,
  $disabled 
)
protected

This functions builds the HTML output for the checkbox

Parameters
string$label‪Label of this item
int$itemCounter‪Number of this element in the list of all elements
int$formElementValue‪Value of this element
int$numberOfItems‪Full number of items
array$additionalInformation‪Information with additional configuration options.
bool$disabled‪TRUE if form element is disabled
Returns
‪string Single element HTML

Definition at line 154 of file CheckboxLabeledToggleElement.php.

References TYPO3\CMS\Backend\Form\Element\AbstractFormElement\appendValueToLabelInDebugMode(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\checkBoxParams(), and TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

Referenced by TYPO3\CMS\Backend\Form\Element\CheckboxLabeledToggleElement\render().

Member Data Documentation

◆ $defaultFieldInformation

array TYPO3\CMS\Backend\Form\Element\CheckboxLabeledToggleElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 31 of file CheckboxLabeledToggleElement.php.

◆ $defaultFieldWizard

array TYPO3\CMS\Backend\Form\Element\CheckboxLabeledToggleElement::$defaultFieldWizard
protected
Initial value:
= array(
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector',
],
'otherLanguageContent' => [
'renderType' => 'otherLanguageContent',
'after' => [
'localizationStateSelector',
],
],
'defaultLanguageDifferences' => [
'renderType' => 'defaultLanguageDifferences',
'after' => [
'otherLanguageContent',
],
],
)

Default field wizards enabled for this element.

Definition at line 41 of file CheckboxLabeledToggleElement.php.