You are here

public function FallbackPluginManagerInterface::getFallbackPluginId in Plug 7

Gets a fallback id for a missing plugin.

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.

File

lib/Drupal/Component/Plugin/FallbackPluginManagerInterface.php, line 26
Contains \Drupal\Component\Plugin\FallbackPluginManagerInterface.

Class

FallbackPluginManagerInterface
An interface implemented by plugin managers with fallback plugin behaviors.

Namespace

Drupal\Component\Plugin

Code

public function getFallbackPluginId($plugin_id, array $configuration = array());