MenuList
class MenuList extends OptionList
Traits
Methods
static ItemListInterface
static MenuList
createFromLinks(array $linksArray)
Create MenuList from legacy link array
static MenuList
createFromRemoteURL(string|null $remoteURL)
No description
Option|null
getFirstEnabledOption()
Returns the first option of this list, that is enabled (not disabled).
from
OptionList
string|null
getRemoteURL()
No description
static string
renderForCodeception(array $attributes = [])
No description
setRemoteURL(string|null $remoteURL)
No description
Details
in
ItemListTrait at line 147
int
count()
No description
at line 31
static ItemListInterface
create(ItemInterface ...$options)
No description
at line 41
static MenuList
createFromLinks(array $linksArray)
Create MenuList from legacy link array
at line 54
static MenuList
createFromRemoteURL(string|null $remoteURL)
No description
in
ItemListTrait at line 96
ItemInterface|null
first()
Get first element
in
OptionList at line 86
Option|null
getFirstEnabledOption()
Returns the first option of this list, that is enabled (not disabled).
Otherwise, returns null.
in
ItemListTrait at line 57
array
getItems()
No description
in
ItemListTrait at line 107
ArrayIterator
getIterator()
No description
in
OptionList at line 64
Option|null
getOption($key)
No description
at line 65
string|null
getRemoteURL()
No description
in
ItemListTrait at line 154
array
jsonSerialize()
No description
in
ItemListTrait at line 88
ItemInterface|null
last()
Return the last element
in
ItemListTrait at line 116
bool
offsetExists($offset)
No description
in
ItemListTrait at line 125
ItemInterface|null
offsetGet($offset)
No description
in
ItemListTrait at line 133
void
offsetSet($offset, $value)
No description
in
ItemListTrait at line 140
void
offsetUnset($offset)
No description
in
ItemListTrait at line 44
int
push(ItemInterface $item)
No description
at line 73
static string
renderForCodeception(array $attributes = [])
No description
in
ItemListTrait at line 66
void
setItems(array $items)
No description
at line 60
MenuList
setRemoteURL(string|null $remoteURL)
No description
in
ItemListTrait at line 74
array
toArray()
Transforms the option into an array.
in
ItemListTrait at line 49
int
unshift(ItemInterface $item)
No description