public function NotificationPluginManagerInterface::createPlugins in Search API Saved Searches 8
Creates multiple notification plugins for the given saved search type.
Parameters
\Drupal\search_api_saved_searches\SavedSearchTypeInterface $type: The saved search type.
string[]|null $plugin_ids: (optional) The IDs of the plugins to create, or NULL to create instances for all known notification plugins.
array $configurations: (optional) The configurations to set for the plugins, keyed by plugin ID. Missing configurations are either taken from the saved search type's stored settings, if they are present there, or default to an empty array.
Return value
\Drupal\search_api_saved_searches\Notification\NotificationPluginInterface[] The created notification plugins.
Throws
\Drupal\search_api_saved_searches\SavedSearchesException Thrown if an unknown plugin ID is given.
1 method overrides NotificationPluginManagerInterface::createPlugins()
- NotificationPluginManager::createPlugins in src/
Notification/ NotificationPluginManager.php - Creates multiple notification plugins for the given saved search type.
File
- src/
Notification/ NotificationPluginManagerInterface.php, line 50
Class
- NotificationPluginManagerInterface
- Provides an interface for the notification plugin manager.
Namespace
Drupal\search_api_saved_searches\NotificationCode
public function createPlugins(SavedSearchTypeInterface $type, array $plugin_ids = NULL, array $configurations = []);