src/View/ActionHandler/AbstractPropertyOverrideEditAllHandler.php
protected function getEditButtons(Action $action, EnvironmentInterface $environment)
    {
        $translator = $environment->getTranslator();

        $mode = $this->getMode($action);

        $buttons = [];

        $buttons['save'] = \sprintf(
            '<input type="submit" name="%s_save" id="%s_save" class="tl_submit" accesskey="s" value="%s" />',
            $mode,
            $mode,
            $translator->translate('MSC.save')
        );

        $buttons['save'] .= '&nbsp;';

        $buttons['save'] .= \sprintf(
            '<input type="submit" name="%s_saveNback" id="%s_saveNback" class="tl_submit" accesskey="c" value="%s" />',
            $mode,
            $mode,
            $translator->translate('MSC.saveNback')
        );

        $submitButtonTemplate = new ContaoBackendViewTemplate('dc_general_submit_button');
        $submitButtonTemplate->setData($buttons);

        return \preg_replace('/(\s\s+|\t|\n)/', '', $submitButtonTemplate->parse());
    }
protected function getEditButtons(Action $action, EnvironmentInterface $environment)
    {
        $translator = $environment->getTranslator();

        $mode = $this->getMode($action);

        $buttons = [];

        $buttons['save'] = \sprintf(
            '<input type="submit" name="%s_save" id="%s_save" class="tl_submit" accesskey="s" value="%s" />',
            $mode,
            $mode,
            $translator->translate('MSC.save')
        );

        $buttons['save'] .= '&nbsp;';

        $buttons['save'] .= \sprintf(
            '<input type="submit" name="%s_saveNback" id="%s_saveNback" class="tl_submit" accesskey="c" value="%s" />',
            $mode,
            $mode,
            $translator->translate('MSC.saveNback')
        );

        $submitButtonTemplate = new ContaoBackendViewTemplate('dc_general_submit_button');
        $submitButtonTemplate->setData($buttons);

        return \preg_replace('/(\s\s+|\t|\n)/', '', $submitButtonTemplate->parse());
    }
protected function getEditButtons ( Action $ action , EnvironmentInterface $ environment ) { $ translator = $ environment -> getTranslator ( ) ; $ mode = $ this -> getMode ( $ action ) ; $ buttons = [ ] ; $ buttons [ 'save' ] = \ sprintf ( '<input type="submit" name="%s_save" id="%s_save" class="tl_submit" accesskey="s" value="%s" />' , $ mode , $ mode , $ translator -> translate ( 'MSC.save' ) ) ; $ buttons [ 'save' ] .= '&nbsp;' ; $ buttons [ 'save' ] .= \ sprintf ( '<input type="submit" name="%s_saveNback" id="%s_saveNback" class="tl_submit" accesskey="c" value="%s" />' , $ mode , $ mode , $ translator -> translate ( 'MSC.saveNback' ) ) ; $ submitButtonTemplate = new ContaoBackendViewTemplate ( 'dc_general_submit_button' ) ; $ submitButtonTemplate -> setData ( $ buttons ) ; return \ preg_replace ( '/(\s\s+|\t|\n)/' , '' , $ submitButtonTemplate -> parse ( ) ) ; }
Retrieve buttons to use in the bottom panel.

@param Action               $action      The action.
@param EnvironmentInterface $environment The environment.

@return array
Retrieve buttons to use in the bottom panel .