You are here

public function RevisionOverviewForm::__construct in Diff 8

Constructs a RevisionOverviewForm object.

Parameters

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

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Datetime\DateFormatter $date: The date service.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

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

\Drupal\diff\DiffEntityComparison $entity_comparison: The diff entity comparison service.

File

src/Form/RevisionOverviewForm.php, line 99

Class

RevisionOverviewForm
Provides a form for revision overview page.

Namespace

Drupal\diff\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, DateFormatter $date, RendererInterface $renderer, LanguageManagerInterface $language_manager, DiffLayoutManager $diff_layout_manager, DiffEntityComparison $entity_comparison) {
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
  $this->date = $date;
  $this->renderer = $renderer;
  $this->languageManager = $language_manager;
  $this->config = $this
    ->config('diff.settings');
  $this->diffLayoutManager = $diff_layout_manager;
  $this->entityComparison = $entity_comparison;
}