You are here

public function ConfigEntityRevisionsControllerBase::__construct in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 src/ConfigEntityRevisionsControllerBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerBase::__construct()
  2. 1.x src/ConfigEntityRevisionsControllerBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsControllerBase::__construct()

Constructs a ConfigEntityRevisionsController object.

Parameters

ContainerInterface $container: The container interface object.

DateFormatterInterface $date_formatter: The date formatter service.

RendererInterface $renderer: The renderer service.

ImmutableConfig $config: The configuration service.

DiffEntityComparison $entity_comparison: The diff entity comparison service.

EntityTypeManager $entity_type_manager: The entity type manager.

AccountProxyInterface $current_user: The current user.

Serializer $serialiser: The serialiser service.

Connection $connection: The database connection.

Overrides ConfigEntityRevisionsControllerInterface::__construct

File

src/ConfigEntityRevisionsControllerBase.php, line 95

Class

ConfigEntityRevisionsControllerBase
Controller to make library functions available to various consumers.

Namespace

Drupal\config_entity_revisions

Code

public function __construct(ContainerInterface $container, DateFormatterInterface $date_formatter, RendererInterface $renderer, ImmutableConfig $config, DiffEntityComparison $entity_comparison, EntityTypeManager $entity_type_manager, AccountProxyInterface $current_user, Serializer $serialiser, Connection $connection) {
  $this->container = $container;
  $this->dateFormatter = $date_formatter;
  $this->renderer = $renderer;
  $this->config = $config;
  $this->entityComparison = $entity_comparison;
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
  $this->serialiser = $serialiser;
  $this->connection = $connection;
}