public function PrevNextApi::__construct in Previous/Next API 8.2
Constructs an PrevNextHelper object.
Parameters
\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\prev_next\PrevNextHelperInterface $prevnext_helper: The PrevNextHelper service.
File
- src/
PrevNextApi.php, line 45
Class
- PrevNextApi
- Defines an PrevNextApi service.
Namespace
Drupal\prev_nextCode
public function __construct(ModuleHandler $module_handler, Connection $database, PrevNextHelperInterface $prevnext_helper) {
$this->moduleHandler = $module_handler;
$this->database = $database;
$this->prevnextHelper = $prevnext_helper;
}