function ResourcePluginManager::getInstance
Overrides PluginManagerBase::getInstance
Deprecated
in Drupal 8.2.0. Use Drupal\rest\Plugin\Type\ResourcePluginManager::createInstance() instead.
See also
https://www.drupal.org/node/2874934
File
-
core/
modules/ rest/ src/ Plugin/ Type/ ResourcePluginManager.php, line 46
Class
- ResourcePluginManager
- Manages discovery and instantiation of resource plugins.
Namespace
Drupal\rest\Plugin\TypeCode
public function getInstance(array $options) {
if (isset($options['id'])) {
return $this->createInstance($options['id']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.