src/Contao/View/Contao2BackendView/ContaoBackendViewTemplate.php
public function getBackButton()
    {
        $container = $GLOBALS['container'];

        $dataContainer  = $container['dc-general.data-definition-container'];
        $dataDefinition = $dataContainer->getDefinition($this->table);

        $environment = new DefaultEnvironment();
        $environment->setDataDefinition($dataDefinition);
        $environment->setTranslator($container['translator']);
        $environment->setEventDispatcher($container['event-dispatcher']);
        $environment->setInputProvider(new InputProvider());
        $environment->setClipboard(new Clipboard());

        $renderer = new GlobalButtonRenderer($environment);
        return $renderer->render();
    }
public function getBackButton()
    {
        $container = $GLOBALS['container'];

        $dataContainer  = $container['dc-general.data-definition-container'];
        $dataDefinition = $dataContainer->getDefinition($this->table);

        $environment = new DefaultEnvironment();
        $environment->setDataDefinition($dataDefinition);
        $environment->setTranslator($container['translator']);
        $environment->setEventDispatcher($container['event-dispatcher']);
        $environment->setInputProvider(new InputProvider());
        $environment->setClipboard(new Clipboard());

        $renderer = new GlobalButtonRenderer($environment);
        return $renderer->render();
    }
public function getBackButton ( ) { $ container = $ GLOBALS [ 'container' ] ; $ dataContainer = $ container [ 'dc-general.data-definition-container' ] ; $ dataDefinition = $ dataContainer -> getDefinition ( $ this -> table ) ; $ environment = new DefaultEnvironment ( ) ; $ environment -> setDataDefinition ( $ dataDefinition ) ; $ environment -> setTranslator ( $ container [ 'translator' ] ) ; $ environment -> setEventDispatcher ( $ container [ 'event-dispatcher' ] ) ; $ environment -> setInputProvider ( new InputProvider ( ) ) ; $ environment -> setClipboard ( new Clipboard ( ) ) ; $ renderer = new GlobalButtonRenderer ( $ environment ) ; return $ renderer -> render ( ) ; }
Get the back button.

@return string

@SuppressWarnings(PHPMD.Superglobals)
Get the back button .