Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / contextual / tests / modules / contextual_test / contextual_test.module
1 <?php
2
3 /**
4  * @file
5  * Provides test contextual link on blocks.
6  */
7
8 use Drupal\Core\Block\BlockPluginInterface;
9
10 /**
11  * Implements hook_block_view_alter().
12  */
13 function contextual_test_block_view_alter(array &$build, BlockPluginInterface $block) {
14   $build['#contextual_links']['contextual_test'] = [
15     'route_parameters' => [],
16   ];
17 }