function ContextualTestHooks::blockViewAlter

Implements hook_block_view_alter().

File

core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php, line 18

Class

ContextualTestHooks
Hook implementations for contextual_test.

Namespace

Drupal\contextual_test\Hook

Code

public function blockViewAlter(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.