You are here

public static function ConflictListBuilder::createInstance in Workspace 8

Instantiates a new instance of this list builder.

Because we don't have a single entity type, we cannot use EntityHandlerInterface::createInstance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this object should use.

Return value

static A new instance of this list builder.

1 call to ConflictListBuilder::createInstance()
WorkspaceController::viewConflicts in src/Controller/WorkspaceController.php
View a list of conflicts for a workspace.

File

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

Class

ConflictListBuilder
A list builder for entity revision conflicts.

Namespace

Drupal\workspace\Controller\Component

Code

public static function createInstance(ContainerInterface $container) {
  return new self($container
    ->get('workspace.conflict_tracker'), $container
    ->get('multiversion.entity_index.rev'), $container
    ->get('entity_type.manager'), $container
    ->get('date.formatter'));
}