Problem/Motivation

In Wordpress you can alter the raw block content before it's rendered using the render_block filter. It would be nice to have this for Drupal as well with an alter hook.

Proposed resolution

Invoke an alter hook in the GutenbergFilter::renderBlock() method just before returning the $block_content. MR incoming!

Issue fork gutenberg-3447741

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

drclaw created an issue. See original summary.

drclaw’s picture

Status: Active » Needs review

MR Submitted!

I tried to keep it close to the wordpress filter so the naming "..._render_block_...", as well as the parameter order. Let me know what you think!

Thanks!
drclaw

marcofernandes’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.