Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeHooks.php

function NodeHooks::__construct

NodeHooks constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler

File

core/modules/node/src/Hook/NodeHooks.php, line 33

Class

NodeHooks
Hook implementations for the node module.

Namespace

Drupal\node\Hook

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler) {
    $this->nodeStorage = $entityTypeManager->getStorage('node');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal