function NodeHooks::blockAlter
Implements hook_block_alter().
Attributes
#[Hook('block_alter')]
File
-
core/
modules/ node/ src/ Hook/ NodeHooks.php, line 72
Class
- NodeHooks
- Hook implementations for the node module.
Namespace
Drupal\node\HookCode
public function blockAlter(&$definitions) : void {
// Hide the deprecated Syndicate block from the UI.
$definitions['node_syndicate_block']['_block_ui_hidden'] = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.