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
Comment | File | Size | Author |
---|---|---|---|
#6 | role_access_per_view_mode-3090066-6.patch | 2.91 KB | joy29 |
Comments
Comment #2
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commenteddeprecated method removed
Comment #3
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedComment #4
Albert Volkman CreditAttribution: Albert Volkman as a volunteer commented@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?Comment #5
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedComment #6
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedComment #7
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedComment #9
Albert Volkman CreditAttribution: Albert Volkman as a volunteer commentedApproved & merged. Thanks again! ☺️