src/Contao/View/Contao2BackendView/PanelBuilder.php
private function createElement($element)
    {
        if ($element instanceof FilterElementInformationInterface) {
            $panelElement = new DefaultFilterElement();
            return $panelElement->setPropertyName($element->getPropertyName());
        }
        if ($element instanceof LimitElementInformationInterface) {
            return new DefaultLimitElement();
        }
        if ($element instanceof SearchElementInformationInterface) {
            return $this->buildSearchElement($element);
        }
        if ($element instanceof SortElementInformationInterface) {
            return new DefaultSortElement();
        }
        if ($element instanceof SubmitElementInformationInterface) {
            return new DefaultSubmitElement();
        }

        return null;
    }
private function createElement($element)
    {
        if ($element instanceof FilterElementInformationInterface) {
            $panelElement = new DefaultFilterElement();
            return $panelElement->setPropertyName($element->getPropertyName());
        }
        if ($element instanceof LimitElementInformationInterface) {
            return new DefaultLimitElement();
        }
        if ($element instanceof SearchElementInformationInterface) {
            return $this->buildSearchElement($element);
        }
        if ($element instanceof SortElementInformationInterface) {
            return new DefaultSortElement();
        }
        if ($element instanceof SubmitElementInformationInterface) {
            return new DefaultSubmitElement();
        }

        return null;
    }
private function createElement ( $ element ) { if ( $ element instanceof FilterElementInformationInterface ) { $ panelElement = new DefaultFilterElement ( ) ; return $ panelElement -> setPropertyName ( $ element -> getPropertyName ( ) ) ; } if ( $ element instanceof LimitElementInformationInterface ) { return new DefaultLimitElement ( ) ; } if ( $ element instanceof SearchElementInformationInterface ) { return $ this -> buildSearchElement ( $ element ) ; } if ( $ element instanceof SortElementInformationInterface ) { return new DefaultSortElement ( ) ; } if ( $ element instanceof SubmitElementInformationInterface ) { return new DefaultSubmitElement ( ) ; } return null ; }
Create the panel element.

@param ElementInformationInterface $element The element being created.

@return PanelElementInterface|null
Create the panel element .