Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Node Access Grants

Security covered Maintenance fixes only 261 sites

This module provides a cleaner, object-oriented way for other modules to define their own node access grants by implementing a service interface instead of traditional hooks.

Why

The Drupal node access grants system has been more or less unchanged since the beginning. However, with Drupal 8, we can and should start leveraging the OOP and service oriented architecture for things like this.

This module defines a simple interface which needs to be implemented by a tagged service in order to play with access grant system, namely the hook_node_grants() and hook_node_access_records() implementations.

How to use it

If you want your module to have its own grants, make this module a dependency and instead of implementing the two hooks, create a service tagged node_access_grants and which implements the NodeAccessGrantsInterface.

Drupal 10–11

Ask your assistant about Node Access Grants

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

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
2
Tracked since
May 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-4.1 Stable 10–11 Jul 28, 2025
8.x-3.1 Stable 8–10 PHP >=7.1 May 6, 2023