function StubFallbackPluginManager::getFallbackPluginId

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php \Drupal\Tests\Component\Plugin\StubFallbackPluginManager::getFallbackPluginId()
  2. 10 core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php \Drupal\Tests\Component\Plugin\StubFallbackPluginManager::getFallbackPluginId()
  3. 11.x core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php \Drupal\Tests\Component\Plugin\StubFallbackPluginManager::getFallbackPluginId()

Overrides FallbackPluginManagerInterface::getFallbackPluginId

File

core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php, line 23

Class

StubFallbackPluginManager
Stubs \Drupal\Component\Plugin\FallbackPluginManagerInterface.

Namespace

Drupal\Tests\Component\Plugin

Code

public function getFallbackPluginId($plugin_id, array $configuration = []) {
    // Minimally implement getFallbackPluginId so that we can test it.
    return $plugin_id . '_fallback';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.