Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Spatie
Menu
HasHtmlAttributes
PHP Interface Spatie\Menu\HasHtmlAttributes
Show file
Open project: spatie/menu
Public Methods
Method
Description
addClass
(
string
$class
)
setAttribute
(
string
$attribute
,
string
$value
= '' )
setAttributes
(
array
$attributes
)
Method Details
addClass()
public
method
public
addClass
(
string
$class
)
$class
string
setAttribute()
public
method
public
setAttribute
(
string
$attribute
,
string
$value
= '' )
$attribute
string
$value
string
setAttributes()
public
method
public
setAttributes
(
array
$attributes
)
$attributes
array