You are here

public function OpignoAnswerRevisionRevertForm::__construct in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Form/OpignoAnswerRevisionRevertForm.php \Drupal\opigno_module\Form\OpignoAnswerRevisionRevertForm::__construct()

Constructs a new OpignoAnswerRevisionRevertForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Answer storage.

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

1 call to OpignoAnswerRevisionRevertForm::__construct()
OpignoAnswerRevisionRevertTranslationForm::__construct in src/Form/OpignoAnswerRevisionRevertTranslationForm.php
Constructs a new OpignoAnswerRevisionRevertTranslationForm.
1 method overrides OpignoAnswerRevisionRevertForm::__construct()
OpignoAnswerRevisionRevertTranslationForm::__construct in src/Form/OpignoAnswerRevisionRevertTranslationForm.php
Constructs a new OpignoAnswerRevisionRevertTranslationForm.

File

src/Form/OpignoAnswerRevisionRevertForm.php, line 50

Class

OpignoAnswerRevisionRevertForm
Provides a form for reverting a Answer revision.

Namespace

Drupal\opigno_module\Form

Code

public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter) {
  $this->OpignoAnswerStorage = $entity_storage;
  $this->dateFormatter = $date_formatter;
}