src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
protected function parseGlobalOperations(Contao2BackendViewDefinitionInterface $view)
    {
        $operationsDca = $this->getFromDca('list/global_operations');

        $collection = $view->getGlobalCommands();
        $collection->addCommand(new BackCommand());
        $collection->addCommand(new CreateModelCommand());

        if (!\is_array($operationsDca)) {
            return;
        }

        foreach (\array_keys($operationsDca) as $operationName) {
            $command = $this->createCommand($operationName, $operationsDca[$operationName]);
            $collection->addCommand($command);
        }
    }
protected function parseGlobalOperations(Contao2BackendViewDefinitionInterface $view)
    {
        $operationsDca = $this->getFromDca('list/global_operations');

        $collection = $view->getGlobalCommands();
        $collection->addCommand(new BackCommand());
        $collection->addCommand(new CreateModelCommand());

        if (!\is_array($operationsDca)) {
            return;
        }

        foreach (\array_keys($operationsDca) as $operationName) {
            $command = $this->createCommand($operationName, $operationsDca[$operationName]);
            $collection->addCommand($command);
        }
    }
protected function parseGlobalOperations ( Contao2BackendViewDefinitionInterface $ view ) { $ operationsDca = $ this -> getFromDca ( 'list/global_operations' ) ; $ collection = $ view -> getGlobalCommands ( ) ; $ collection -> addCommand ( new BackCommand ( ) ) ; $ collection -> addCommand ( new CreateModelCommand ( ) ) ; if ( ! \ is_array ( $ operationsDca ) ) { return ; } foreach ( \ array_keys ( $ operationsDca ) as $ operationName ) { $ command = $ this -> createCommand ( $ operationName , $ operationsDca [ $ operationName ] ) ; $ collection -> addCommand ( $ command ) ; } }
Parse the defined container scoped operations and populate the definition.

@param Contao2BackendViewDefinitionInterface $view The backend view configuration definition to populate.

@return void
Parse the defined container scoped operations and populate the definition .