By dpi on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0-alpha1
Issue links:
Description:
\Drupal\Core\Entity\Controller\EntityViewController::viewRevision is deprecated, the method will be removed in Drupal 11.0.
Update routing to use the new controller: \Drupal\Core\Entity\Controller\EntityRevisionViewController
Before:
entity.myentity.revision:
path: '/myentities/{myentity}/revisions/{myentity_revision}/view'
defaults:
_controller: '\Drupal\Core\Entity\Controller\EntityViewController::viewRevision'
After:
entity.myentity.revision:
path: '/myentities/{myentity}/revisions/{myentity_revision}/view'
defaults:
_controller: '\Drupal\Core\Entity\Controller\EntityRevisionViewController'
Impacts:
Module developers