Skip to content

Commit 275739f

Browse files
committed
Remove OgActionLink return message markup
1 parent 9b8a362 commit 275739f

File tree

2 files changed

+1
-85
lines changed

2 files changed

+1
-85
lines changed

src/Controller/OgAdminRoutesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function overview(RouteMatchInterface $route_match) {
7979
// prevent us from unit testing this method.
8080
if (!$this->accessManager->checkNamedRoute($route_name, $parameters)) {
8181
// User doesn't have access to the route.
82-
return AccessResult::forbidden();
82+
return ['#markup' => $this->t('You do not have any administrative items.')];
8383
}
8484

8585
$content[] = [

src/Plugin/Derivative/OgActionLink.php

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)