GenerateDataAttributesStringOptions
in package
Table of Contents
Properties
- $arrayHandling : GenerateDataAttributesStringArrayHandling
- $normalizeKeys : bool
- $xhtml : bool
Methods
- create() : self
- getArrayHandling() : GenerateDataAttributesStringArrayHandling
- isNormalizeKeys() : bool
- isXhtml() : bool
- setArrayHandling() : GenerateDataAttributesStringOptions
- setNormalizeKeys() : GenerateDataAttributesStringOptions
- Array keys are normalized to lowercase dash-cased strings (e.g. Foo Bar_player is transformed to foo-bar-player)
- setXhtml() : GenerateDataAttributesStringOptions
Properties
$arrayHandling
private
GenerateDataAttributesStringArrayHandling
$arrayHandling
= \HeimrichHannot\UtilsBundle\Util\HtmlUtil\GenerateDataAttributesStringArrayHandling::REDUCE
$normalizeKeys
private
bool
$normalizeKeys
= true
$xhtml
private
bool
$xhtml
= false
Methods
create()
public
static create() : self
Return values
selfgetArrayHandling()
public
getArrayHandling() : GenerateDataAttributesStringArrayHandling
Return values
GenerateDataAttributesStringArrayHandlingisNormalizeKeys()
public
isNormalizeKeys() : bool
Return values
boolisXhtml()
public
isXhtml() : bool
Return values
boolsetArrayHandling()
public
setArrayHandling(GenerateDataAttributesStringArrayHandling $arrayHandling) : GenerateDataAttributesStringOptions
Parameters
- $arrayHandling : GenerateDataAttributesStringArrayHandling
Return values
GenerateDataAttributesStringOptionssetNormalizeKeys()
Array keys are normalized to lowercase dash-cased strings (e.g. Foo Bar_player is transformed to foo-bar-player)
public
setNormalizeKeys(bool $normalizeKeys) : GenerateDataAttributesStringOptions
Parameters
- $normalizeKeys : bool
Return values
GenerateDataAttributesStringOptionssetXhtml()
public
setXhtml(bool $xhtml) : GenerateDataAttributesStringOptions
Parameters
- $xhtml : bool