4/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ --------------------------------------------------------------------------
Line role_access_per_view_mode.module
------ --------------------------------------------------------------------------
31 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before 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.
------ --------------------------------------------------------------------------

------ --------------------------------------------------------------------------
Line src/Plugin/Field/FieldWidget/RoleAccessPerViewModeWidget.php
------ --------------------------------------------------------------------------
40 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before 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 2 errors

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joy29 created an issue. See original summary.

joy29’s picture

deprecated method removed

joy29’s picture

Assigned: joy29 » Unassigned
Status: Active » Needs review
Albert Volkman’s picture

Status: Needs review » Needs work

@joy29 thank you for your patch! Could you please use dependency injection for the class and use \Drupal::service('entity_type.manager') for the function?

joy29’s picture

Assigned: Unassigned » joy29
joy29’s picture

FileSize
2.91 KB
joy29’s picture

Assigned: joy29 » Unassigned
Status: Needs work » Needs review

Albert Volkman’s picture

Status: Needs review » Fixed

Approved & merged. Thanks again! ☺️

Status: Fixed » Closed (fixed)

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