You are here

public function ConditionalFieldsHandlersManager::getFallbackPluginId in Conditional Fields 8

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

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.

Overrides FallbackPluginManagerInterface::getFallbackPluginId

File

src/ConditionalFieldsHandlersManager.php, line 95

Class

ConditionalFieldsHandlersManager
Manages discovery and instantiation of handler plugins.

Namespace

Drupal\conditional_fields

Code

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