public function NotificationPluginManagerInterface::createPlugin in Search API Saved Searches 8
Creates a notification plugin for the given saved search type.
Parameters
\Drupal\search_api_saved_searches\SavedSearchTypeInterface $type: The saved search type.
string $plugin_id: The ID of the notification plugin to create.
array $configuration: (optional) The configuration to set for the plugin.
Return value
\Drupal\search_api_saved_searches\Notification\NotificationPluginInterface The created notification plugin.
Throws
\Drupal\search_api_saved_searches\SavedSearchesException Thrown if an unknown plugin ID is given.
1 method overrides NotificationPluginManagerInterface::createPlugin()
- NotificationPluginManager::createPlugin in src/
Notification/ NotificationPluginManager.php - Creates a notification plugin for the given saved search type.
File
- src/
Notification/ NotificationPluginManagerInterface.php, line 29
Class
- NotificationPluginManagerInterface
- Provides an interface for the notification plugin manager.
Namespace
Drupal\search_api_saved_searches\NotificationCode
public function createPlugin(SavedSearchTypeInterface $type, $plugin_id, array $configuration = []);