AbstractControl
Control used by various components
Table of Contents
Properties
- $classes : string
- HTML tag attribute for class
- $dataAttributes : array<string|int, mixed>
- HTML tag attributes for data-* Use key => value pairs
- $title : string
- HTML tag attribute for title
Methods
- getClasses() : string
- Get classes
- getDataAttributes() : array<string|int, mixed>
- Get Data attributes
- getTitle() : string
- Get Title
- setClasses() : $this
- Set classes
- setDataAttributes() : $this
- Set Data attributes
- setTitle() : $this
- Set title attribute
Properties
$classes
HTML tag attribute for class
protected
string
$classes
= ''
$dataAttributes
HTML tag attributes for data-* Use key => value pairs
protected
array<string|int, mixed>
$dataAttributes
= []
$title
HTML tag attribute for title
protected
string
$title
= ''
Methods
getClasses()
Get classes
public
getClasses() : string
Return values
stringgetDataAttributes()
Get Data attributes
public
getDataAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
Get Title
public
getTitle() : string
Return values
stringsetClasses()
Set classes
public
setClasses(string $classes) : $this
Parameters
- $classes : string
-
HTML class attribute to set
Return values
$thissetDataAttributes()
Set Data attributes
public
setDataAttributes(array<string|int, mixed> $dataAttributes) : $this
Parameters
- $dataAttributes : array<string|int, mixed>
-
HTML data attributes to set
Return values
$thissetTitle()
Set title attribute
public
setTitle(string $title) : $this
Parameters
- $title : string
-
HTML title attribute to set