function NavigationTestBlockHooks::blockAlter

Implements hook_block_alter().

File

core/modules/navigation/tests/navigation_test_block/src/Hook/NavigationTestBlockHooks.php, line 17

Class

NavigationTestBlockHooks
Hooks implementations for navigation_test_block module.

Namespace

Drupal\navigation_test_block\Hook

Code

public function blockAlter(&$definitions) : void {
    $definitions['navigation_test']['allow_in_navigation'] = TRUE;
}

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