Problem/Motivation

The example shown by the Example Render module for a hook_preprocess_node() implementation shows how to change the render array for blocks, or how a block is moved from a theme region to another one. That is not an example I would give for that hook implementation.

Proposed resolution

Use a different example, where a new render array item is added.

Issue fork examples-3616161

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

avpaderno created an issue. See original summary.

charlliequadros made their first commit to this issue’s fork.

charlliequadros’s picture

Assigned: Unassigned » charlliequadros

charlliequadros’s picture

Hi @avpaderno

I’ve made the change. Could you please validate if this is what you were expecting?

Cheers!
Charllie

charlliequadros’s picture

Assigned: charlliequadros » Unassigned
Status: Active » Needs review
avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

  • avpaderno committed 88e165a3 on main
    #3616161: Give a better hook_preprocess_page() example
    
avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for the merge request!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.