Problem/Motivation

Call to deprecated function user_roles(): in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\user\Entity\Role::loadMultiple()

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ankitv18 created an issue. See original summary.

ankitv18’s picture

@larowlan
This deprecated method is in hook_update_N i.e entity_print_update_8101 ~~ Do we need to fix this with a suggested replacement?

larowlan’s picture

Either we add a hook_update_last_removed and remove this hook or we drop support for 10.1

Or both

sarwan_verma made their first commit to this issue’s fork.

sarwan_verma’s picture

Status: Active » Needs review

Hi,

I have resolved all the deprecated functions for Drupal 10 and created MR!62. Kindly review it.

Thanks.

ankitv18 changed the visibility of the branch 3465822-deprecated-function-user-roles to hidden.

ankitv18’s picture

Status: Needs review » Needs work
ankitv18’s picture

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

As per suggestion by @larowlan I've raised the MR.

larowlan’s picture

Plus one for this - but looks like there's a new fail on PHPUnit next minor? https://git.drupalcode.org/project/entity_print/-/pipelines/242319 is passing in HEAD

ankitv18’s picture

@larowlan I've re-run the phpunit-next minor and it is passing now ~~ We are good to move ahead with this one.

  • larowlan committed 1912336f on 8.x-2.x authored by ankitv18
    Issue #3465822 by ankitv18, sarwan_verma: Fix deprecated function...
larowlan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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