function contextual_test_block_view_alter

Same name in other branches
  1. 9 core/modules/contextual/tests/modules/contextual_test/contextual_test.module \contextual_test_block_view_alter()
  2. 10 core/modules/contextual/tests/modules/contextual_test/contextual_test.module \contextual_test_block_view_alter()
  3. 11.x core/modules/contextual/tests/modules/contextual_test/contextual_test.module \contextual_test_block_view_alter()

Implements hook_block_view_alter().

File

core/modules/contextual/tests/modules/contextual_test/contextual_test.module, line 13

Code

function contextual_test_block_view_alter(array &$build, BlockPluginInterface $block) {
    $build['#contextual_links']['contextual_test'] = [
        'route_parameters' => [],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.