function 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\Hook

Code

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.