This module enhances the admin permissions page by displaying the machine names for each permission. Users can easily copy these machine names to their clipboard for use in custom modules and routing configurations.
Displays permission machine names in the admin permissions table at /admin/people/permissions, so developers can easily copy and use them in custom modules.
Features
- Shows the machine name below each permission
- Click on any machine name to copy it to clipboard
- Works with Drupal 9.3+, 10, and 11
Usage
1. Enable the module
2. Navigate to People > Permissions
3. Machine names appear below each permission
4. Click any machine name to copy it
Example
Use the copied machine name in your routing.yml:
my_module.example:
path: '/example'
defaults:
_controller: '\Drupal\my_module\Controller\ExampleController::content'
requirements:
_permission: 'administer book outlines'
Requirements
- Drupal 9.3+, 10, or 11
Configuration
No configuration needed. Just enable and use.
Ask your assistant about Access Arguments List
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- user Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.