function BlockContentTestHooks::blockContentView
Implements hook_block_content_view().
File
-
core/
modules/ block_content/ tests/ modules/ block_content_test/ src/ Hook/ BlockContentTestHooks.php, line 18
Class
- BlockContentTestHooks
- Hook implementations for block_content_test.
Namespace
Drupal\block_content_test\HookCode
public function blockContentView(array &$build, BlockContent $block_content, $view_mode) {
// Add extra content.
$build['extra_content'] = [
'#markup' => '<blink>Wow</blink>',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.