You are here

public function ContactFormRevisionsController::revisionShowTitle in Config Entity Revisions 8.2

Generates a title for the revision.

This function is needed because the $contact parameter needs to match the route but the parent's parameter is named $configEntity.

@inheritdoc

Overrides ConfigEntityRevisionsControllerInterface::revisionShowTitle

1 string reference to 'ContactFormRevisionsController::revisionShowTitle'
contact_form_revisions.routing.yml in modules/contact_form_revisions/contact_form_revisions.routing.yml
modules/contact_form_revisions/contact_form_revisions.routing.yml

File

modules/contact_form_revisions/src/Controller/ContactFormRevisionsController.php, line 25

Class

ContactFormRevisionsController
Controller to make library functions available to various consumers.

Namespace

Drupal\contact_form_revisions\Controller

Code

public function revisionShowTitle(ConfigEntityInterface $contact_form) {
  return '"' . $contact_form
    ->get('label') . '" contact form, revision ' . $contact_form
    ->getRevisionId();
}