src/CoreBundle/EventListener/DcGeneral/Breadcrumb/BreadcrumbStore.php
public function getLabel($table): string
    {
        if (strpos($table, 'tl_') !== 0) {
            return $table;
        }
        $shortTable = str_replace('tl_', '', $table);
        $label      = $this->translator->trans('BRD.' . $shortTable, [], 'contao_default');
        if ($label === $shortTable) {
            $shortTable = str_replace('tl_metamodel_', '', $table);
            return ucfirst($shortTable) . ' %s';
        }

        return StringUtil::specialchars($label);
    }
public function getLabel($table): string
    {
        if (strpos($table, 'tl_') !== 0) {
            return $table;
        }
        $shortTable = str_replace('tl_', '', $table);
        $label      = $this->translator->trans('BRD.' . $shortTable, [], 'contao_default');
        if ($label === $shortTable) {
            $shortTable = str_replace('tl_metamodel_', '', $table);
            return ucfirst($shortTable) . ' %s';
        }

        return StringUtil::specialchars($label);
    }
public function getLabel ( $ table ) : string { if ( strpos ( $ table , 'tl_' ) !== 0 ) { return $ table ; } $ shortTable = str_replace ( 'tl_' , '' , $ table ) ; $ label = $ this -> translator -> trans ( 'BRD.' . $ shortTable , [ ] , 'contao_default' ) ; if ( $ label === $ shortTable ) { $ shortTable = str_replace ( 'tl_metamodel_' , '' , $ table ) ; return ucfirst ( $ shortTable ) . ' %s' ; } return StringUtil :: specialchars ( $ label ) ; }
Get for a table the human readable name or a fallback.

@param string $table Name of table.

@return string The human readable name.
Get for a table the human readable name or a fallback .