public function MongodbNodeGrantStorage::__construct in MongoDB 8
Constructs a NodeGrantDatabaseStorage object.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- mongodb_node/
src/ MongodbNodeGrantStorage.php, line 52 - Contains \Drupal\node\NodeGrantDatabaseStorage.
Class
- MongodbNodeGrantStorage
- Defines a controller class that handles the node grants system.
Namespace
Drupal\mongodb_nodeCode
public function __construct(MongoCollectionFactory $mongo, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) {
$this->mongo = $mongo;
$this->moduleHandler = $module_handler;
$this->languageManager = $language_manager;
}