You are here

public function NodeViewCountRecordsManager::__construct in Node view count 8

Constructs a NodeViewCountRecordsManager object.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection object.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Configuration object factory.

File

src/NodeViewCountRecordsManager.php, line 41

Class

NodeViewCountRecordsManager
Provides a class for interacting with nodeviewcount records.

Namespace

Drupal\nodeviewcount

Code

public function __construct(Connection $connection, ConfigFactoryInterface $config_factory) {
  $this->connection = $connection;
  $this->config = $config_factory
    ->get('nodeviewcount.settings');
}