You are here

public function ConflictListBuilder::__construct in Workspace 8

Inject services needed to build the list.

Parameters

\Drupal\multiversion\Workspace\ConflictTrackerInterface $conflict_tracker: The conflict tracking service.

\Drupal\multiversion\Entity\Index\RevisionIndexInterface $revision_index: The entity index service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: A date formatter to show pretty dates.

File

src/Controller/Component/ConflictListBuilder.php, line 58

Class

ConflictListBuilder
A list builder for entity revision conflicts.

Namespace

Drupal\workspace\Controller\Component

Code

public function __construct(ConflictTrackerInterface $conflict_tracker, RevisionIndexInterface $revision_index, EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter) {
  $this->conflictTracker = $conflict_tracker;
  $this->revisionIndex = $revision_index;
  $this->entityTypeManager = $entity_type_manager;
  $this->dateFormatter = $date_formatter;
}