You are here

protected function InstallablePluginManager::handlePluginNotFound in Markdown 8.2

Allows plugin managers to specify custom behavior if a plugin is not found.

Parameters

string $plugin_id: The ID of the missing requested plugin.

array $configuration: An array of configuration relevant to the plugin instance.

Return value

object A fallback plugin instance.

Overrides PluginManagerBase::handlePluginNotFound

File

src/PluginManager/InstallablePluginManager.php, line 428

Class

InstallablePluginManager
Installable Plugin Manager.

Namespace

Drupal\markdown\PluginManager

Code

protected function handlePluginNotFound($plugin_id, array $configuration) {
  $fallback_id = $this
    ->getFallbackPluginId($plugin_id, $configuration);
  $configuration['original_plugin_id'] = $plugin_id;
  return $this
    ->getFactory()
    ->createInstance($fallback_id, $configuration);
}