Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By joshi.rohit100 on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
8.0.x
Issue links:
Description:
\Drupal\rest\Plugin\Type\ResourcePluginManager::getInstance() is removed.
As getInstance() does nothing but calls createInstance(), so it is useless.
For all modules that call ::getInstance(), must change these calls according the below code examples
Before:
$resourceManager->getInstance([
'id' => $id,
]);
After:
$resourceManager->createInstance($id);
Impacts:
Module developers