function NodeBlockHooks::blockAlter
Same name and namespace in other branches
- 11.x core/modules/node/src/Hook/NodeBlockHooks.php \Drupal\node\Hook\NodeBlockHooks::blockAlter()
Implements hook_block_alter().
Attributes
#[Hook('block_alter')]
File
-
core/
modules/ node/ src/ Hook/ NodeBlockHooks.php, line 17
Class
- NodeBlockHooks
- Block hook implementations for node.
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.