You are here

public function NodeGrantDatabaseStorage::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/NodeGrantDatabaseStorage.php \Drupal\node\NodeGrantDatabaseStorage::__construct()

Constructs a NodeGrantDatabaseStorage object.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

core/modules/node/src/NodeGrantDatabaseStorage.php, line 53

Class

NodeGrantDatabaseStorage
Defines a storage handler class that handles the node grants system.

Namespace

Drupal\node

Code

public function __construct(Connection $database, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) {
  $this->database = $database;
  $this->moduleHandler = $module_handler;
  $this->languageManager = $language_manager;
}