function StubFallbackPluginManager::getFallbackPluginId

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php \Drupal\Tests\Component\Plugin\StubFallbackPluginManager::getFallbackPluginId()
  2. 8.9.x 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 PluginManagerBase::getFallbackPluginId

File

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

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.