You are here

public function ContentHubEntitiesTracking::__construct in Acquia Content Hub 8

TableSortExampleController constructor.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/ContentHubEntitiesTracking.php, line 87

Class

ContentHubEntitiesTracking
Tracks in a table the list of all entities imported from Content Hub.

Namespace

Drupal\acquia_contenthub

Code

public function __construct(Connection $database, ConfigFactoryInterface $config_factory) {
  $this->database = $database;
  $this->contentHubAdminConfig = $config_factory
    ->get('acquia_contenthub.admin_settings');
}