src/Contao/View/Contao2BackendView/ButtonRenderer.php
public function renderButtonsForCollection(CollectionInterface $collection)
    {
        // Generate buttons.
        foreach ($collection as $i => $model) {
            $previous = $collection->get($i - 1);
            $next     = $collection->get($i + 1);
            /** @var ModelInterface $model */
            $this->renderButtonsFor($model, $previous, $next);
        }
    }
public function renderButtonsForCollection(CollectionInterface $collection)
    {
        // Generate buttons.
        foreach ($collection as $i => $model) {
            $previous = $collection->get($i - 1);
            $next     = $collection->get($i + 1);
            /** @var ModelInterface $model */
            $this->renderButtonsFor($model, $previous, $next);
        }
    }
public function renderButtonsForCollection ( CollectionInterface $ collection ) { // Generate buttons. foreach ( $ collection as $ i => $ model ) { $ previous = $ collection -> get ( $ i - 1 ) ; $ next = $ collection -> get ( $ i + 1 ) ; /** @var ModelInterface $model */ $ this -> renderButtonsFor ( $ model , $ previous , $ next ) ; } }
Render the operation buttons for the passed models.

@param CollectionInterface $collection The collection containing the models.

@return void
Render the operation buttons for the passed models .