public function PluginManager::createInstance in Express 8
Creates a pre-configured instance of a plugin.
Parameters
string $plugin_id: The ID of the plugin being instantiated.
array $configuration: An array of configuration relevant to the plugin instance.
Return value
object A fully configured plugin instance.
Throws
\Drupal\Component\Plugin\Exception\PluginException If the instance cannot be created, such as if the ID is invalid.
Overrides PluginManagerBase::createInstance
1 call to PluginManager::createInstance()
- UpdateManager::getUpdates in themes/
contrib/ bootstrap/ src/ Plugin/ UpdateManager.php - Retrieves update plugins for the theme.
File
- themes/
contrib/ bootstrap/ src/ Plugin/ PluginManager.php, line 84 - Contains \Drupal\bootstrap\Plugin\PluginManager.
Class
- PluginManager
- Base class for Bootstrap plugin managers.
Namespace
Drupal\bootstrap\PluginCode
public function createInstance($plugin_id, array $configuration = array()) {
if (!isset($configuration['theme'])) {
$configuration['theme'] = $this->theme;
}
return parent::createInstance($plugin_id, $configuration);
}