public function ResourceManagerInterface::getPlugin in RESTful 7.2
Get a resource plugin instance by instance ID.
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::getPlugin()
- ResourceManager::getPlugin in src/
Resource/ ResourceManager.php - Get a resource plugin instance by instance ID.
File
- src/
Resource/ ResourceManagerInterface.php, line 43 - Contains \Drupal\restful\Resource\ResourceManagerInterface.
Class
Namespace
Drupal\restful\ResourceCode
public function getPlugin($instance_id, RequestInterface $request = NULL);