You are here

public function YamlFormElementManager::getFallbackPluginId in YAML Form 8

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

1 call to YamlFormElementManager::getFallbackPluginId()
YamlFormElementManager::getElementPluginId in src/YamlFormElementManager.php
Is an element's plugin id.

File

src/YamlFormElementManager.php, line 52

Class

YamlFormElementManager
Provides a plugin manager for form element plugins.

Namespace

Drupal\yamlform

Code

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