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
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
Comment #3
charlliequadros commentedComment #5
charlliequadros commentedHi @avpaderno
I’ve made the change. Could you please validate if this is what you were expecting?
Cheers!
Charllie
Comment #6
charlliequadros commentedComment #7
avpadernoComment #10
avpadernoThank you for the merge request!