You are here

public function ConfigEntityRevisionsDeleteFormBase::displayUpdate in Config Entity Revisions 8.2

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

Display a message to the user.

1 call to ConfigEntityRevisionsDeleteFormBase::displayUpdate()
ConfigEntityRevisionsDeleteFormBase::submitForm in src/ConfigEntityRevisionsDeleteFormBase.php
Form submission handler.

File

src/ConfigEntityRevisionsDeleteFormBase.php, line 166

Class

ConfigEntityRevisionsDeleteFormBase
Provides a form for reverting a config entity revision.

Namespace

Drupal\config_entity_revisions

Code

public function displayUpdate() {
  \Drupal::messenger()
    ->addMessage(t('Revision from %revision-date of %form has been deleted.', [
    '%revision-date' => $this->dateFormatter
      ->format($this->revision
      ->getRevisionCreationTime()),
    '%form' => $this->config_entity
      ->label(),
  ]));
}