You are here

public function FallbackPluginManagerInterface::getFallbackPluginId in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/FallbackPluginManagerInterface.php \Drupal\Component\Plugin\FallbackPluginManagerInterface::getFallbackPluginId()
  2. 9 core/lib/Drupal/Component/Plugin/FallbackPluginManagerInterface.php \Drupal\Component\Plugin\FallbackPluginManagerInterface::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.

5 methods override FallbackPluginManagerInterface::getFallbackPluginId()
BlockManager::getFallbackPluginId in core/lib/Drupal/Core/Block/BlockManager.php
Gets a fallback id for a missing plugin.
FilterPluginManager::getFallbackPluginId in core/modules/filter/src/FilterPluginManager.php
Gets a fallback id for a missing plugin.
SelectionPluginManager::getFallbackPluginId in core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManager.php
Gets a fallback id for a missing plugin.
StubFallbackPluginManager::getFallbackPluginId in core/tests/Drupal/Tests/Component/Plugin/StubFallbackPluginManager.php
Gets a fallback id for a missing plugin.
ViewsHandlerManager::getFallbackPluginId in core/modules/views/src/Plugin/ViewsHandlerManager.php
Gets a fallback id for a missing plugin.

File

core/lib/Drupal/Component/Plugin/FallbackPluginManagerInterface.php, line 21

Class

FallbackPluginManagerInterface
An interface implemented by plugin managers with fallback plugin behaviors.

Namespace

Drupal\Component\Plugin

Code

public function getFallbackPluginId($plugin_id, array $configuration = []);