function ResourcePluginManager::getInstance

Overrides PluginManagerBase::getInstance

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\Type

Code

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.