Bolt\Controller\Backend\BackendBase::getRoutePermission PHP Méthode

getRoutePermission() private méthode

Temporary hack to get the permission name associated with the route.
private getRoutePermission ( string $route ) : string
$route string
Résultat string
    private function getRoutePermission($route)
    {
        if ($route === 'omnisearch-results') {
            return 'omnisearch';
        }
        return $route;
    }