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

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

        $collection = $view->getModelCommands();

        foreach ($operationsDca as $operationName => $operationDca) {
            $command = $this->createCommand($operationName, $operationDca);
            $collection->addCommand($command);
        }
    }
protected function parseModelOperations(Contao2BackendViewDefinitionInterface $view)
    {
        $operationsDca = $this->getFromDca('list/operations');

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

        $collection = $view->getModelCommands();

        foreach ($operationsDca as $operationName => $operationDca) {
            $command = $this->createCommand($operationName, $operationDca);
            $collection->addCommand($command);
        }
    }
protected function parseModelOperations ( Contao2BackendViewDefinitionInterface $ view ) { $ operationsDca = $ this -> getFromDca ( 'list/operations' ) ; if ( ! \ is_array ( $ operationsDca ) ) { return ; } $ collection = $ view -> getModelCommands ( ) ; foreach ( $ operationsDca as $ operationName => $ operationDca ) { $ command = $ this -> createCommand ( $ operationName , $ operationDca ) ; $ collection -> addCommand ( $ command ) ; } }
Parse the defined model scoped operations and populate the definition.

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

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