src/FrontendIntegration/MetaModelHybrid.php
public function generate()
    {
        if (TL_MODE == 'BE') {
            $strInfo = '';
            if ($this->metamodel) {
                // Add CSS file.
                $GLOBALS['TL_CSS'][] = 'system/modules/metamodels/assets/css/style.css';

                // Retrieve name of MetaModels.
                $infoTemplate =
                    '<div class="wc_info tl_gray"><span class="wc_label"><abbr title="%s">%s:</abbr></span> %s</div>';

                $factory       = $this->getFactory();
                $metaModelName = $factory->translateIdToMetaModelName($this->metamodel);
                $metaModel     = $factory->getMetaModel($metaModelName);
                $strInfo       = sprintf(
                    $infoTemplate,
                    $GLOBALS['TL_LANG']['MSC']['mm_be_info_name'][1],
                    $GLOBALS['TL_LANG']['MSC']['mm_be_info_name'][0],
                    $metaModel->getName()
                );

                $database = $this->getConnection();

                // Retrieve name of filter.
                if ($this->metamodel_filtering) {
                    $infoFi = $database
                        ->createQueryBuilder()
                        ->select('name')
                        ->from('tl_metamodel_filter')
                        ->where('id=:id')
                        ->setParameter('id', $this->metamodel_filtering)
                        ->execute()
                        ->fetch(\PDO::FETCH_COLUMN);

                    if ($infoFi) {
                        $strInfo .= sprintf(
                            $infoTemplate,
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_filter'][1],
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_filter'][0],
                            $infoFi
                        );
                    }
                }

                // Retrieve name of rendersetting.
                if ($this->metamodel_rendersettings) {
                    $infoRs = $database
                        ->createQueryBuilder()
                        ->select('name')
                        ->from('tl_metamodel_rendersettings')
                        ->where('id=:id')
                        ->setParameter('id', $this->metamodel_rendersettings)
                        ->execute()
                        ->fetch(\PDO::FETCH_COLUMN);

                    if ($infoRs) {
                        $strInfo .= sprintf(
                            $infoTemplate,
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_render_setting'][1],
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_render_setting'][0],
                            $infoRs
                        );
                    }
                }
            }

            $objTemplate           = new BackendTemplate('be_wildcard');
            $objTemplate->wildcard = $this->wildCardName . $strInfo;
            $objTemplate->title    = $this->headline;
            $objTemplate->id       = $this->id;
            $objTemplate->link     = ($this->typePrefix == 'mod_' ? 'FE-Modul: ' : '') . $this->name;
            $objTemplate->href     = sprintf($this->wildCardLink, $this->id);

            return $objTemplate->parse();
        }

        return parent::generate();
    }
public function generate()
    {
        if (TL_MODE == 'BE') {
            $strInfo = '';
            if ($this->metamodel) {
                // Add CSS file.
                $GLOBALS['TL_CSS'][] = 'system/modules/metamodels/assets/css/style.css';

                // Retrieve name of MetaModels.
                $infoTemplate =
                    '<div class="wc_info tl_gray"><span class="wc_label"><abbr title="%s">%s:</abbr></span> %s</div>';

                $factory       = $this->getFactory();
                $metaModelName = $factory->translateIdToMetaModelName($this->metamodel);
                $metaModel     = $factory->getMetaModel($metaModelName);
                $strInfo       = sprintf(
                    $infoTemplate,
                    $GLOBALS['TL_LANG']['MSC']['mm_be_info_name'][1],
                    $GLOBALS['TL_LANG']['MSC']['mm_be_info_name'][0],
                    $metaModel->getName()
                );

                $database = $this->getConnection();

                // Retrieve name of filter.
                if ($this->metamodel_filtering) {
                    $infoFi = $database
                        ->createQueryBuilder()
                        ->select('name')
                        ->from('tl_metamodel_filter')
                        ->where('id=:id')
                        ->setParameter('id', $this->metamodel_filtering)
                        ->execute()
                        ->fetch(\PDO::FETCH_COLUMN);

                    if ($infoFi) {
                        $strInfo .= sprintf(
                            $infoTemplate,
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_filter'][1],
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_filter'][0],
                            $infoFi
                        );
                    }
                }

                // Retrieve name of rendersetting.
                if ($this->metamodel_rendersettings) {
                    $infoRs = $database
                        ->createQueryBuilder()
                        ->select('name')
                        ->from('tl_metamodel_rendersettings')
                        ->where('id=:id')
                        ->setParameter('id', $this->metamodel_rendersettings)
                        ->execute()
                        ->fetch(\PDO::FETCH_COLUMN);

                    if ($infoRs) {
                        $strInfo .= sprintf(
                            $infoTemplate,
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_render_setting'][1],
                            $GLOBALS['TL_LANG']['MSC']['mm_be_info_render_setting'][0],
                            $infoRs
                        );
                    }
                }
            }

            $objTemplate           = new BackendTemplate('be_wildcard');
            $objTemplate->wildcard = $this->wildCardName . $strInfo;
            $objTemplate->title    = $this->headline;
            $objTemplate->id       = $this->id;
            $objTemplate->link     = ($this->typePrefix == 'mod_' ? 'FE-Modul: ' : '') . $this->name;
            $objTemplate->href     = sprintf($this->wildCardLink, $this->id);

            return $objTemplate->parse();
        }

        return parent::generate();
    }
Generate the list.

@return string

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)