public function PrevNextHelper::__construct in Previous/Next API 8.2
Constructs an PrevNextHelper object.
Parameters
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Configuration Factory.
File
- src/
PrevNextHelper.php, line 35
Class
- PrevNextHelper
- Defines an PrevNextHelper service.
Namespace
Drupal\prev_nextCode
public function __construct(Connection $database, ConfigFactoryInterface $config_factory) {
$this->database = $database;
$this->configFactory = $config_factory;
}