system_block_view_system_main_block_alter(array &$build, BlockPluginInterface $block)
Implements hook_block_view_BASE_BLOCK_ID_alter().
File
- core/modules/system/system.module, line 1420
- Configuration system that lets administrators modify the workings of the site.
Code
1 2 3 4 5 | function system_block_view_system_main_block_alter( array & $build , BlockPluginInterface $block ) { // Contextual links on the system_main block would basically duplicate the // tabs/local tasks, so reduce the clutter. unset( $build [ '#contextual_links' ]); } |
Please login to continue.