SplitButtonItems
final readonly class \
SplitButtonItems
Type-safe container for split button items.
A split button consists of one primary action button and an array of option buttons shown in a dropdown menu. This DTO ensures type safety and prevents the use of magic array keys.
Internal
This is a concrete implementation and not part of the TYPO3 Public API.
Table of Contents
Properties
- $options : array
- $primary : AbstractButton
Methods
- __construct() : mixed
- isValid() : bool
- Checks if the split button has a valid configuration.
Properties
$options
public
array
$options
$primary
public
AbstractButton
$primary
Methods
__construct()
public
__construct(AbstractButton $primary, AbstractButton[] $options) : mixed
Parameters
- $primary : AbstractButton
-
The primary action button
- $options : AbstractButton[]
-
Array of option buttons for the dropdown
isValid()
Checks if the split button has a valid configuration.
public
isValid() : bool
Return values
bool —True if primary action exists and at least one option is available