Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: RightUp 1.0.2 — Minor update available for module rightup (1.0.2). Release: CronWatch 0.12.1 — Minor update available for module cronwatch (0.12.1). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Domain Route Access (UI)

Security covered

Part of the Domain ecosystem · 40 projects

View on drupal.org

The Domain Route Access UI module provides a new configuration entity to manage access to existing routes by domain from back office.

Use case example:
You have two domains example1.com and example2.com and you want users to be able to create their accounts only on the example2.com domain. With Domain Route Access, you can achieve this by adding an access check on the user.register route so that it is only accessible on example2.com.

Configuration

To add new Domain Route Access check:

Option 1: Via Domain Route Access config entity

  1. Go to Domain Route Access config entity collection page: /admin/config/domain/route-access
  2. Click Add new Domain Route Access action link
  3. Fill in the new Domain Route Access config entity form and click Save
  4. Clear Drupal cache

For each Domain Route Access configuration entity, you could:

  • Select the route for which you want to check access by domains
  • Select the allowed domains on which the route should be accessible
  • Enable/Disable the Domain Route Access check


Option 2: Using existing _domain route requirement

my_module.custom_route:
  path: '/foo/bar'
  defaults:
    _controller: 'Drupal\my_module\Controller\BarsController'
  requirements:
    _permission: 'view bars content'
    _domain: 'domain1_id+domain2_id'

Additional Requirements

Domain Route Access requires Domain contrib module.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Mar 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable Mar 23, 2024
1.0.0 Stable Mar 17, 2024
1.0.x-dev Dev Mar 17, 2024