Bolt\Controller\Backend\BackendBase::getRoutePermission PHP Method

getRoutePermission() private method

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