You are here

public function ConfigEntityRevisionsOverviewFormBase::__construct in Config Entity Revisions 8.2

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

Constructs a ConfigEntityRevisionsController object.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Config\ImmutableConfig $config: The configuration service.

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler service.

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

\Drupal\diff\DiffLayoutManager $diff_layout_manager: The diff layout manager service.

\Drupal\Core\Utility\LinkGenerator $link: The Link generator service.

Overrides ConfigEntityRevisionsOverviewFormBaseInterface::__construct

File

src/ConfigEntityRevisionsOverviewFormBase.php, line 95

Class

ConfigEntityRevisionsOverviewFormBase
Class ConfigEntityRevisionsOverviewFormBase.

Namespace

Drupal\config_entity_revisions

Code

public function __construct(DateFormatterInterface $date_formatter, RendererInterface $renderer, ImmutableConfig $config, ModuleHandler $module_handler, EntityTypeManager $entity_type_manager, DiffLayoutManager $diff_layout_manager, LinkGenerator $link) {
  $this->dateFormatter = $date_formatter;
  $this->renderer = $renderer;
  $this->config = $this
    ->config('diff.settings');
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->diffLayoutManager = $diff_layout_manager;
  $this->linkService = $link;
}