src/Contao/View/Contao2BackendView/PanelRenderer.php
protected function renderPanelRow($panel, $ignoredPanels)
    {
        $parsedElements = [];
        $index          = 0;
        $max            = (\count($panel) - 1);
        foreach ($panel as $element) {
            /** @var PanelElementInterface $element */
            // If the current class in the list of ignored panels go to the next one.
            if ($this->isIgnoredPanel($element, $ignoredPanels)) {
                $max--;
                continue;
            }

            $parsedElements[] = $this->renderPanelElement(
                $element,
                $this->calculatePanelElementCssClass($index, $max)
            );
            $index++;
        }

        return $parsedElements;
    }
protected function renderPanelRow($panel, $ignoredPanels)
    {
        $parsedElements = [];
        $index          = 0;
        $max            = (\count($panel) - 1);
        foreach ($panel as $element) {
            /** @var PanelElementInterface $element */
            // If the current class in the list of ignored panels go to the next one.
            if ($this->isIgnoredPanel($element, $ignoredPanels)) {
                $max--;
                continue;
            }

            $parsedElements[] = $this->renderPanelElement(
                $element,
                $this->calculatePanelElementCssClass($index, $max)
            );
            $index++;
        }

        return $parsedElements;
    }
protected function renderPanelRow ( $ panel , $ ignoredPanels ) { $ parsedElements = [ ] ; $ index = 0 ; $ max = ( \ count ( $ panel ) - 1 ) ; foreach ( $ panel as $ element ) { /** @var PanelElementInterface $element */ // If the current class in the list of ignored panels go to the next one. if ( $ this -> isIgnoredPanel ( $ element , $ ignoredPanels ) ) { $ max -- ; continue ; } $ parsedElements [ ] = $ this -> renderPanelElement ( $ element , $ this -> calculatePanelElementCssClass ( $ index , $ max ) ) ; $ index ++ ; } return $ parsedElements ; }
Render a panel.

@param PanelInterface $panel         The panel to render.
@param string[]       $ignoredPanels Array of class names that shall be ignored.

@return array
Render a panel .