You are here

public function RevisionTracker::__construct in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/RevisionTracker.php \Drupal\workbench_moderation\RevisionTracker::__construct()

RevisionTracker constructor.

Parameters

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

string $table: The table that should be used for tracking.

File

src/RevisionTracker.php, line 36

Class

RevisionTracker
Tracks metadata about revisions across entities.

Namespace

Drupal\workbench_moderation

Code

public function __construct(Connection $connection, $table = 'workbench_revision_tracker') {
  $this->connection = $connection;
  $this->tableName = $table;
}