function FilterPluginManager::getFallbackPluginId

Same name and namespace in other branches
  1. 9 core/modules/filter/src/FilterPluginManager.php \Drupal\filter\FilterPluginManager::getFallbackPluginId()
  2. 8.9.x core/modules/filter/src/FilterPluginManager.php \Drupal\filter\FilterPluginManager::getFallbackPluginId()
  3. 10 core/modules/filter/src/FilterPluginManager.php \Drupal\filter\FilterPluginManager::getFallbackPluginId()

Gets a fallback id for a missing plugin.

This method should be implemented in extending classes that also implement FallbackPluginManagerInterface. It is called by PluginManagerBase::handlePluginNotFound on the abstract class, and therefore should be defined as well on the abstract class to prevent static analysis errors.

Parameters

string $plugin_id: The ID of the missing requested plugin.

array $configuration: An array of configuration relevant to the plugin instance.

phpcs:ignore Drupal.Commenting.FunctionComment.InvalidNoReturn

Return value

string The id of an existing plugin to use when the plugin does not exist.

Overrides PluginManagerBase::getFallbackPluginId

File

core/modules/filter/src/FilterPluginManager.php, line 43

Class

FilterPluginManager
Manages text processing filters.

Namespace

Drupal\filter

Code

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

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