2 namespace TYPO3\CMS\Backend\Template\Components;
62 $buttonPosition = self::BUTTON_POSITION_LEFT,
66 throw new \InvalidArgumentException(
'Button "' . $button->
getType() .
'" is not valid', 1441706370);
70 $buttonPosition = $button->getPosition();
71 $buttonGroup = $button->getGroup();
74 $this->buttons[$buttonPosition][$buttonGroup][] = clone $button;
90 if (!in_array(ButtonInterface::class, class_implements($button),
true)) {
91 throw new \InvalidArgumentException(
'A Button must implement ButtonInterface', 1441706378);
165 foreach ($this->buttons as $position => $_) {
166 ksort($this->buttons[$position]);
169 if (!empty(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'Backend\Template\Components\ButtonBar'][
'getButtonsHook'])) {
170 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'Backend\Template\Components\ButtonBar'][
'getButtonsHook'] as $funcRef) {
172 'buttons' => $this->buttons