public function PluginManagerDecorator::getInstance in Plugin 8.2
Gets a preconfigured instance of a plugin.
Parameters
array $options: An array of options that can be used to determine a suitable plugin to instantiate and how to configure it.
Return value
object|false A fully configured plugin instance. The interface of the plugin instance will depend on the plugin type. If no instance can be retrieved, FALSE will be returned.
Overrides MapperInterface::getInstance
File
- src/
PluginManager/ PluginManagerDecorator.php, line 51
Class
- PluginManagerDecorator
- Provides a plugin manager decorator.
Namespace
Drupal\plugin\PluginManagerCode
public function getInstance(array $options) {
throw new \BadMethodCallException('This method is not supported. See https://www.drupal.org/node/1894130.');
}