public function WebformRevisionsController::revisionShowTitle in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 modules/webform_revisions/src/Controller/WebformRevisionsController.php \Drupal\webform_revisions\Controller\WebformRevisionsController::revisionShowTitle()
- 1.x modules/webform_revisions/src/Controller/WebformRevisionsController.php \Drupal\webform_revisions\Controller\WebformRevisionsController::revisionShowTitle()
Generates a title for the revision.
This function is needed because the $webform parameter needs to match the route but the parent's parameter is named $configEntity.
@inheritdoc
Overrides ConfigEntityRevisionsControllerInterface::revisionShowTitle
1 string reference to 'WebformRevisionsController::revisionShowTitle'
- webform_revisions.routing.yml in modules/
webform_revisions/ webform_revisions.routing.yml - modules/webform_revisions/webform_revisions.routing.yml
File
- modules/
webform_revisions/ src/ Controller/ WebformRevisionsController.php, line 27
Class
- WebformRevisionsController
- Controller to make library functions available to various consumers.
Namespace
Drupal\webform_revisions\ControllerCode
public function revisionShowTitle(ConfigEntityInterface $webform) {
return '"' . $webform
->get('title') . '" webform, revision ' . $webform
->getRevisionId();
}