Plugin\rest\resource\AllDbsResource.php uses deprecated function entity_load_multiple.

This patch corrects that.

Comments

johnstorey created an issue. See original summary.

johnstorey’s picture

Status: Needs review » Needs work

The last submitted patch, 2: update-deprecated-code-2578601-0-8.x-1.x.patch, failed testing.

The last submitted patch, 2: update-deprecated-code-2578601-0-8.x-1.x.patch, failed testing.

The last submitted patch, 2: update-deprecated-code-2578601-0-8.x-1.x.patch, failed testing.

timmillwood’s picture

I think it would be better to use dependency injection. Look at the __construct (https://api.drupal.org/api/drupal/core%21modules%21rest%21src%21Plugin%2...) and create (https://api.drupal.org/api/drupal/core%21modules%21rest%21src%21Plugin%2...) methods from ResourceBase as an example, then pull in $container->get('entity.manager').

jeqq’s picture

Status: Needs work » Closed (outdated)

This has been fixed.