class NodeBlockHooks

Block hook implementations for node.

Hierarchy

Expanded class hierarchy of NodeBlockHooks

File

core/modules/node/src/Hook/NodeBlockHooks.php, line 12

Namespace

Drupal\node\Hook
View source
class NodeBlockHooks {
  
  /**
   * Implements hook_block_alter().
   */
  public function blockAlter(&$definitions) : void {
    // Hide the deprecated Syndicate block from the UI.
    $definitions['node_syndicate_block']['_block_ui_hidden'] = TRUE;
  }

}

Members

Title Sort descending Modifiers Object type Summary
NodeBlockHooks::blockAlter public function Implements hook_block_alter().

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