Gutenberg enabled hook

Created on 7 May 2024, about 2 months ago

Problem/Motivation

The _gutenberg_is_gutenberg_enabled() function is used to check if Gutenberg should be enabled for an entity. The problem is that there is no way for other modules to decide on this.

Proposed resolution

Create a new hook, called hook_gutenberg_enabled() that is triggered by the function, and if there is any module that decides to not have the Gutenberg editor enabled, then the editor is disabled. The default would still be to check the Gutenberg settings from the node type configuration.

API changes

A new hook: hook_gutenberg_enabled(), returning a boolean value.

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania vasi1186

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024