function DevelDumperPluginManager::getFallbackPluginId

Same name and namespace in other branches
  1. 4.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::getFallbackPluginId()

Gets a fallback id for a missing plugin.

This method should be implemented in extending classes that also implement FallbackPluginManagerInterface. It is called by PluginManagerBase::handlePluginNotFound on the abstract class, and therefore should be defined as well on the abstract class to prevent static analysis errors.

Parameters

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

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

Return value

string The id of an existing plugin to use when the plugin does not exist.

Overrides PluginManagerBase::getFallbackPluginId

1 call to DevelDumperPluginManager::getFallbackPluginId()
DevelDumperPluginManager::createInstance in src/DevelDumperPluginManager.php
Creates a plugin instance based on the provided ID and configuration.

File

src/DevelDumperPluginManager.php, line 68

Class

DevelDumperPluginManager
Plugin type manager for Devel Dumper plugins.

Namespace

Drupal\devel

Code

public function getFallbackPluginId($plugin_id, array $configuration = []) : string {
  return 'var_dumper';
}