You are here

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_next

Code

public function __construct(Connection $database, ConfigFactoryInterface $config_factory) {
  $this->database = $database;
  $this->configFactory = $config_factory;
}