SplitButtonItems

final readonly class \TYPO3\CMS\Backend\Template\Components\Buttons\SplitButtonItems

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.

Table of Contents

Properties

$options  : array
$primary  : AbstractButton

Methods

__construct()  : mixed
isValid()  : bool
Checks if the split button has a valid configuration.

Properties

Methods

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

On this page