src/Contao/View/Contao2BackendView/ActionHandler/CreateHandler.php
protected function handleGlobalCommands(EnvironmentInterface $environment)
    {
        $dataDefinition = $environment->getDataDefinition();
        $backendView    = $dataDefinition->getDefinition(Contao2BackendViewDefinitionInterface::NAME);
        $globalCommands = $backendView->getGlobalCommands();

        $globalCommands->clearCommands();

        $backCommand = new BackCommand();
        $backCommand->setDisabled(false);
        $globalCommands->addCommand($backCommand);
    }
protected function handleGlobalCommands(EnvironmentInterface $environment)
    {
        $dataDefinition = $environment->getDataDefinition();
        $backendView    = $dataDefinition->getDefinition(Contao2BackendViewDefinitionInterface::NAME);
        $globalCommands = $backendView->getGlobalCommands();

        $globalCommands->clearCommands();

        $backCommand = new BackCommand();
        $backCommand->setDisabled(false);
        $globalCommands->addCommand($backCommand);
    }
protected function handleGlobalCommands ( EnvironmentInterface $ environment ) { $ dataDefinition = $ environment -> getDataDefinition ( ) ; $ backendView = $ dataDefinition -> getDefinition ( Contao2BackendViewDefinitionInterface :: NAME ) ; $ globalCommands = $ backendView -> getGlobalCommands ( ) ; $ globalCommands -> clearCommands ( ) ; $ backCommand = new BackCommand ( ) ; $ backCommand -> setDisabled ( false ) ; $ globalCommands -> addCommand ( $ backCommand ) ; }
Handle the globals commands

@param EnvironmentInterface $environment The environment.

@return void
Handle the globals commands