public function MapperInterface::getInstance in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Component/Plugin/Mapper/MapperInterface.php \Drupal\Component\Plugin\Mapper\MapperInterface::getInstance()
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 depends on the plugin type. If no instance can be retrieved, FALSE will be returned.
3 methods override MapperInterface::getInstance()
- ContainerAwarePluginManager::getInstance in src/
Plugin/ ContainerAwarePluginManager.php - Gets a preconfigured instance of a plugin.
- PluginManagerBase::getInstance in src/
Plugin/ PluginManagerBase.php - Gets a preconfigured instance of a plugin.
- PluginManagerBase::getInstance in lib/
Drupal/ Component/ Plugin/ PluginManagerBase.php - Gets a preconfigured instance of a plugin.
File
- lib/
Drupal/ Component/ Plugin/ Mapper/ MapperInterface.php, line 32 - Contains \Drupal\Component\Plugin\Mapper\MapperInterface.
Class
- MapperInterface
- Plugin mapper interface.
Namespace
Drupal\Component\Plugin\MapperCode
public function getInstance(array $options);