protected function loadPluginInstance($pluginClassName, array $settings) {
		$pluginClassName = '\\' . ltrim($pluginClassName, '\\');
		/** @var PluginInterface $plugin */
		$plugin = new $pluginClassName();
		$plugin->initialize($settings);
		return $plugin;
	}
protected function loadPluginInstance($pluginClassName, array $settings) {
		$pluginClassName = '\\' . ltrim($pluginClassName, '\\');
		/** @var PluginInterface $plugin */
		$plugin = new $pluginClassName();
		$plugin->initialize($settings);
		return $plugin;
	}
protected function loadPluginInstance ( $ pluginClassName , array $ settings ) { $ pluginClassName = '\\' . ltrim ( $ pluginClassName , '\\' ) ; /** @var PluginInterface $plugin */ $ plugin = new $ pluginClassName ( ) ; $ plugin -> initialize ( $ settings ) ; return $ plugin ; }
Create and initialize a single plugin instance
based on class name and settings.

@param string $pluginClassName
@param array $settings
@return PluginInterface
Create and initialize a single plugin instance based on class name and settings .