this may be a trivial question, but I have no clue to how to get this working. I have this theme 'nexus'. When try the hook
in the file nexus.theme, it works,
function nexus_block_view_alter(&$data, $block)
Should I put it in a module? I tried creating a module using hello_world example, and put in the the module's controller but no avail.
Any hint would be much helpful.