public function MethodPluginManager::getMethodPlugin in Persistent URL 8
Parameters
string $id:
Return value
Overrides MethodPluginManagerInterface::getMethodPlugin
File
- src/
Plugin/ MethodPluginManager.php, line 46
Class
Namespace
Drupal\purl\PluginCode
public function getMethodPlugin($id) {
if (!isset($this->methodPlugins[$id])) {
$plugin = $this
->createInstance($id);
if ($plugin instanceof ContainerAwareInterface) {
$plugin
->setContainer($this->container);
}
$this->methodPlugins[$id] = $plugin;
}
return $this->methodPlugins[$id];
}