Skip to content

Commit

Permalink
Merge pull request #498 from mydropwizard/CRM-21295-admin-menu-link
Browse files Browse the repository at this point in the history
CRM-21295: Port top-level admin menu link for CiviCRM to Drupal 8
  • Loading branch information
colemanw authored Oct 13, 2017
2 parents 9ee7420 + 4de2ec7 commit 86d989d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions civicrm.links.menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
civicrm.admin_config_civicrm:
route_name: civicrm.admin_config_civicrm
parent: system.admin_config
title: CiviCRM
weight: -10
8 changes: 8 additions & 0 deletions civicrm.routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ civicrm.civicrm_logout:
requirements:
_user_is_logged_in: 'TRUE'

civicrm.admin_config_civicrm:
path: '/admin/config/civicrm'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'CiviCRM'
requirements:
_permission: 'access administration pages'

civicrm.user_profile:
path: '/user/{user}/edit/profile/{profile}'
defaults:
Expand Down

0 comments on commit 86d989d

Please sign in to comment.