function block_content_test_block_content_view

Same name in other branches
  1. 9 core/modules/block_content/tests/modules/block_content_test/block_content_test.module \block_content_test_block_content_view()
  2. 8.9.x core/modules/block_content/tests/modules/block_content_test/block_content_test.module \block_content_test_block_content_view()
  3. 10 core/modules/block_content/tests/modules/block_content_test/block_content_test.module \block_content_test_block_content_view()

Implements hook_block_content_view().

File

core/modules/block_content/tests/modules/block_content_test/block_content_test.module, line 18

Code

function block_content_test_block_content_view(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.