public function MongodbPathAliasStorage::__construct in MongoDB 8
Constructs a Path CRUD object.
Parameters
\Drupal\mongodb\MongoCollectionFactory $mongo: The object wrapping the MongoDB database object.
\Drupal\core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
MongodbPathAliasStorage.php, line 44 - Contains Drupal\mongodb\Path.
Class
- MongodbPathAliasStorage
- Provides a class for CRUD operations on path aliases in MongoDB.
Namespace
Drupal\mongodbCode
public function __construct(MongoCollectionFactory $mongo, ModuleHandlerInterface $module_handler) {
$this->mongo = $mongo;
$this->module_handler = $module_handler;
}