src/FormLayout/AbstractBootstrapFormLayout.php
protected function getTemplate(Widget $widget, string $section): string
    {
        if ($section === 'help' && empty($this->widgetConfig[$widget->type]['help'])) {
            return '';
        }

        if (isset($this->widgetConfig[$widget->type]['templates'][$section])) {
            return $this->widgetConfig[$widget->type]['templates'][$section];
        }

        if (isset($this->fallbackConfig['templates'][$section])) {
            return $this->fallbackConfig['templates'][$section];
        }

        return '';
    }
protected function getTemplate(Widget $widget, string $section): string
    {
        if ($section === 'help' && empty($this->widgetConfig[$widget->type]['help'])) {
            return '';
        }

        if (isset($this->widgetConfig[$widget->type]['templates'][$section])) {
            return $this->widgetConfig[$widget->type]['templates'][$section];
        }

        if (isset($this->fallbackConfig['templates'][$section])) {
            return $this->fallbackConfig['templates'][$section];
        }

        return '';
    }
protected function getTemplate ( Widget $ widget , string $ section ) : string { if ( $ section === 'help' && empty ( $ this -> widgetConfig [ $ widget -> type ] [ 'help' ] ) ) { return '' ; } if ( isset ( $ this -> widgetConfig [ $ widget -> type ] [ 'templates' ] [ $ section ] ) ) { return $ this -> widgetConfig [ $ widget -> type ] [ 'templates' ] [ $ section ] ; } if ( isset ( $ this -> fallbackConfig [ 'templates' ] [ $ section ] ) ) { return $ this -> fallbackConfig [ 'templates' ] [ $ section ] ; } return '' ; }
Get a template for a section.

@param Widget $widget  Widget.
@param string $section Section.

@return string
Get a template for a section .