6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
================================================================================
User revision, 8.8.5
Scanned on Sat, 05/23/2020 - 17:16
FILE: web/modules/contrib/user_revision/src/Access/UserRevisionAccessCheck.php
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 37 Parameter $entity_manager of method
Drupal\user_revision\Access\UserRevisionAccessCheck::__const
ruct() has typehint with deprecated interface
Drupal\Core\Entity\EntityManagerInterface. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0.
--------------------------------------------------------------------------------
FILE: web/modules/contrib/user_revision/src/Controller/UserController.php
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 57 Call to deprecated method entityManager() of class
Drupal\Core\Controller\ControllerBase. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Most of the
time static::entityTypeManager() is supposed to be used
instead.
--------------------------------------------------------------------------------
Check manually 58 Call to deprecated method entityManager() of class
Drupal\Core\Controller\ControllerBase. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Most of the
time static::entityTypeManager() is supposed to be used
instead.
--------------------------------------------------------------------------------
Fix now 84 Call to deprecated method link() of class
Drupal\Core\Entity\EntityInterface. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal\Core\EntityInterface::toLink()->toString() instead.
--------------------------------------------------------------------------------
Fix now 87 Call to deprecated method l() of class
Drupal\Core\Controller\ControllerBase. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\Link::fromTextAndUrl() instead.
--------------------------------------------------------------------------------
Check manually 97 Call to deprecated function drupal_render(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use the
--------------------------------------------------------------------------------
Check manually 172 Call to deprecated method entityManager() of class
Drupal\Core\Controller\ControllerBase. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Most of the
time static::entityTypeManager() is supposed to be used
instead.
--------------------------------------------------------------------------------
Check manually 177 Call to deprecated method entityManager() of class
Drupal\Core\Controller\ControllerBase. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Most of the
time static::entityTypeManager() is supposed to be used
instead.
--------------------------------------------------------------------------------
Check manually 191 Call to deprecated method entityManager() of class
Drupal\Core\Controller\ControllerBase. Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Most of the
time static::entityTypeManager() is supposed to be used
instead.
--------------------------------------------------------------------------------
Check manually 192 Call to deprecated function format_date(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal::service('date.formatter')->format().
--------------------------------------------------------------------------------
FILE: web/modules/contrib/user_revision/src/Form/UserRevisionDeleteForm.php
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 47 Call to deprecated method getStorage() of class
Drupal\Core\Entity\EntityManager. Deprecated in drupal:8.0.0
and is removed from drupal:9.0.0. Use
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
instead.
--------------------------------------------------------------------------------
Check manually 62 Call to deprecated function format_date(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal::service('date.formatter')->format().
--------------------------------------------------------------------------------
Check manually 97 Call to deprecated function drupal_set_message(). Deprecated
in drupal:8.5.0 and is removed from drupal:9.0.0. Use
Drupal\Core\Messenger\MessengerInterface::addMessage()
instead.
--------------------------------------------------------------------------------
Check manually 97 Call to deprecated function format_date(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal::service('date.formatter')->format().
--------------------------------------------------------------------------------
FILE: web/modules/contrib/user_revision/src/Form/UserRevisionRevertForm.php
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Fix now 46 Call to deprecated method getStorage() of class
Drupal\Core\Entity\EntityManager. Deprecated in drupal:8.0.0
and is removed from drupal:9.0.0. Use
Drupal\Core\Entity\EntityTypeManagerInterface::getStorage()
instead.
--------------------------------------------------------------------------------
Check manually 61 Call to deprecated function format_date(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal::service('date.formatter')->format().
--------------------------------------------------------------------------------
Check manually 108 Call to deprecated function format_date(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal::service('date.formatter')->format().
--------------------------------------------------------------------------------
Check manually 112 Call to deprecated function drupal_set_message(). Deprecated
in drupal:8.5.0 and is removed from drupal:9.0.0. Use
Drupal\Core\Messenger\MessengerInterface::addMessage()
instead.
--------------------------------------------------------------------------------
Check manually 112 Call to deprecated function format_date(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Use
Drupal::service('date.formatter')->format().
--------------------------------------------------------------------------------
FILE: web/modules/contrib/user_revision/user_revision.install
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 21 Call to deprecated method entityManager() of class Drupal.
Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
Use Drupal::entityTypeManager() instead in most cases. If
the needed method is not on
\Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
--------------------------------------------------------------------------------
Check manually 32 Call to deprecated method entityManager() of class Drupal.
Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
Use Drupal::entityTypeManager() instead in most cases. If
the needed method is not on
\Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
--------------------------------------------------------------------------------
FILE: web/modules/contrib/user_revision/user_revision.module
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 290 Call to deprecated method entityManager() of class Drupal.
Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
Use Drupal::entityTypeManager() instead in most cases. If
the needed method is not on
\Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
--------------------------------------------------------------------------------
Check manually 291 Call to deprecated function db_query(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the
container and call query() on it. For example,
--------------------------------------------------------------------------------
Check manually 304 Call to deprecated method entityManager() of class Drupal.
Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
Use Drupal::entityTypeManager() instead in most cases. If
the needed method is not on
\Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
--------------------------------------------------------------------------------
Check manually 305 Call to deprecated function db_query(). Deprecated in
drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the
container and call query() on it. For example,
--------------------------------------------------------------------------------
FILE: web/modules/contrib/user_revision/user_revision.info.yml
STATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 0 Add <code>core_version_requirement: ^8 || ^9 to
user_revision.info.yml to designate that the module is
compatible with Drupal 9. See
https://drupal.org/node/3070687.
--------------------------------------------------------------------------------
Comments
Comment #2
ashutosh.mishra commentedComment #3
ashutosh.mishra commentedComment #4
vivek panicker commentedComment #5
geek-merlin@vivek:
Why not leverage #3142033: Automated Drupal 9 compatibility fixes? Note that i just committed that and this may well have the job done.
If anything is left, please create an issue fork and push to it. Thanks!
Comment #7
dabley commentedPatch #2 does not apply to the latest dev release. It clashes with changes made in issues #3142033: Automated Drupal 9 compatibility fixes and #3194850: Fix user revision pages. (Note that #3142033: Automated Drupal 9 compatibility fixes does not fix all D9 compatibility issues - it doesnt even add the core_version_requirement into the info.yml file.)
Can someone generate a new patch for this issue?
Comment #8
dabley commentedI've produced a new patch. I fixed a couple of bugs in patch #2, and rebuilt it so that it will apply to the current dev branch.
Comment #9
dabley commentedI have added patch #8 into the issue fork, so that anyone using composer for their site can now reference this to achieve D9 compatibility (that's not possible using a patch file). This package doesnt have its own composer.json file, so you'll need to add something like this to your composer.json file to identify the package:
More details
Comment #10
Ibn al-Hazardous commentedThanks! This was very helpful. I have one minor update, in the composer.json snippet in comment #9, there's a line missing:
If you add
"type": "drupal-module"as above, the module will install in the correct path.Comment #11
geek-merlinComment #12
dabley commentedYes, this issue is a duplicate of https://www.drupal.org/project/user_revision/issues/3142033 - however, that issue does not actually provide a fix to the problem, whereas this one does. So, perhaps 3142033 should have been marked as a duplicate of this one?
Comment #13
mlncn commentedLooks good and thank you Ibn al-Hazardous for that catch.
Comment #15
mlncn commented