src/Contao/View/Contao2BackendView/PanelRenderer.php
protected function isIgnoredPanel(PanelElementInterface $element, $ignoredPanels)
    {
        if (empty($ignoredPanels)) {
            return false;
        }

        foreach ((array) $ignoredPanels as $class) {
            if ($element instanceof $class) {
                return true;
            }
        }

        return false;
    }
protected function isIgnoredPanel(PanelElementInterface $element, $ignoredPanels)
    {
        if (empty($ignoredPanels)) {
            return false;
        }

        foreach ((array) $ignoredPanels as $class) {
            if ($element instanceof $class) {
                return true;
            }
        }

        return false;
    }
protected function isIgnoredPanel ( PanelElementInterface $ element , $ ignoredPanels ) { if ( empty ( $ ignoredPanels ) ) { return false ; } foreach ( ( array ) $ ignoredPanels as $ class ) { if ( $ element instanceof $ class ) { return true ; } } return false ; }
Check if the current element is in the ignored list.

@param PanelElementInterface $element       A panel Element.
@param string[]              $ignoredPanels A list with ignored elements.

@return boolean True => Element is on the ignored list. | False => Nope not in the list.
Check if the current element is in the ignored list .