src/View/EditMask.php
private function getEditButtons()
    {
        $buttons = [];

        $buttons['save'] = sprintf(
            '<input type="submit" name="save" class="submit save" accesskey="s" value="%s">',
            $this->translateLabel('save')
        );

        if ($this->definition->getBasicDefinition()->isCreatable()) {
            $buttons['saveNcreate'] = sprintf(
                '<input type="submit" name="saveNcreate" class="submit saveNcreate" accesskey="n" ' .
                ' value="%s">',
                $this->translateLabel('saveNcreate')
            );
        }

        $event = new GetEditModeButtonsEvent($this->environment);
        $event->setButtons($buttons);

        $this->dispatcher->dispatch($event::NAME, $event);

        return $event->getButtons();
    }
private function getEditButtons()
    {
        $buttons = [];

        $buttons['save'] = sprintf(
            '<input type="submit" name="save" class="submit save" accesskey="s" value="%s">',
            $this->translateLabel('save')
        );

        if ($this->definition->getBasicDefinition()->isCreatable()) {
            $buttons['saveNcreate'] = sprintf(
                '<input type="submit" name="saveNcreate" class="submit saveNcreate" accesskey="n" ' .
                ' value="%s">',
                $this->translateLabel('saveNcreate')
            );
        }

        $event = new GetEditModeButtonsEvent($this->environment);
        $event->setButtons($buttons);

        $this->dispatcher->dispatch($event::NAME, $event);

        return $event->getButtons();
    }
Retrieve a list of html buttons to use in the bottom panel (submit area).

@return string[]