public function StubFallbackPluginManager::getFallbackPluginId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php \Drupal\Tests\Component\Plugin\StubFallbackPluginManager::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
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ StubFallbackPluginManager.php, line 28 - Contains \Drupal\Tests\Component\Plugin\StubFallbackPluginManager.
Class
Namespace
Drupal\Tests\Component\PluginCode
public function getFallbackPluginId($plugin_id, array $configuration = array()) {
// Minimally implement getFallbackPluginId so that we can test it.
return $plugin_id . '_fallback';
}