public function ResourceManagerInterface::getPluginCopy in RESTful 7.2
Get a copy of resource plugin instance by instance ID.
This is useful when you have sub-requests, since you don't want to change state to other resources.
Parameters
string $instance_id: The instance ID.
RequestInterface $request: The request object.
Return value
ResourceInterface The plugin.
Throws
PluginNotFoundException If the plugin instance cannot be found.
1 method overrides ResourceManagerInterface::getPluginCopy()
- ResourceManager::getPluginCopy in src/
Resource/ ResourceManager.php - Get a copy of resource plugin instance by instance ID.
File
- src/
Resource/ ResourceManagerInterface.php, line 160 - Contains \Drupal\restful\Resource\ResourceManagerInterface.
Class
Namespace
Drupal\restful\ResourceCode
public function getPluginCopy($instance_id, RequestInterface $request = NULL);