1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ --------------------------------------------------------------------------
Line cacherefs.module
------ --------------------------------------------------------------------------
14 Call to deprecated method entityManager() of class Drupal:
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.
------ --------------------------------------------------------------------------

[ERROR] Found 1 error

CommentFileSizeAuthor
#8 3131611-8.patch915 bytesankush_03
#3 3131611-3.patch903 bytesankush_03

Comments

mohrerao created an issue. See original summary.

ankush_03’s picture

Assigned: Unassigned » ankush_03
ankush_03’s picture

Assigned: ankush_03 » Unassigned
Status: Active » Needs review
Issue tags: +Srijancontribution2020
StatusFileSize
new903 bytes

Adding Patch !

mohrerao’s picture

kristen pol’s picture

mohrerao’s picture

Tested on Drupal 9 and patch fails in functional testing.
Call to undefined method Drupal\Core\Entity\EntityTypeManager::getFieldDefinitions() in /Applications/MAMP/htdocs/my_site_name_dir/web/modules/contrib/cacherefs/cacherefs.module on line 14 #0 /Applications/MAMP/htdocs/my_site_name_dir/web/modules/contrib/cacherefs/cacherefs.module(33): cacherefs_clear(Object(Drupal\node\Entity\Node))

mohrerao’s picture

Status: Needs review » Needs work
ankush_03’s picture

Status: Needs work » Needs review
StatusFileSize
new915 bytes
mohrerao’s picture

Tested with 3131611-8.patch on 9.1.0-dev. Patch works fine.

mohrerao’s picture

Issue tags: +DIACWMay2020
gábor hojtsy’s picture

Add event-appropriate tag based on DIACWMay2020. (Sorry for the noise).

tjferre’s picture

Status: Needs review » Fixed

Created a new master branch for Drupal 9 and added the patch.
https://git.drupalcode.org/project/cacherefs/-/tags

Drupal.org is currently not allowing creating a new release... will create a Drupal 9 release as soon as I can.

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.