Module Description
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.

Project Usage
65
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the need for leveraging OOP and service oriented architecture in defining access grants in Drupal 8 by providing a simple interface for tagged services to implement the hook_node_grants() and hook_node_access_records() implementations.
Data Name
node_access_grants

OPENAI CHATBOT

OPENAI CHATBOT

08:28:53
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.