public function SavedSearchType::getNotificationPlugins in Search API Saved Searches 8
Retrieves this saved search type's notification plugins.
Return value
\Drupal\search_api_saved_searches\Notification\NotificationPluginInterface[] The notification plugins used by this saved search type, keyed by plugin ID.
Overrides SavedSearchTypeInterface::getNotificationPlugins
9 calls to SavedSearchType::getNotificationPlugins()
- SavedSearchType::addNotificationPlugin in src/
Entity/ SavedSearchType.php - Adds a notification plugin to this saved search type.
- SavedSearchType::createFormDisplay in src/
Entity/ SavedSearchType.php - Creates a "create" form display for a new saved search bundle.
- SavedSearchType::getDependencyData in src/
Entity/ SavedSearchType.php - Retrieves data about this type's dependencies.
- SavedSearchType::getNotificationPlugin in src/
Entity/ SavedSearchType.php - Retrieves a specific notification plugin for this saved search type.
- SavedSearchType::getNotificationPluginFieldDefinitions in src/
Entity/ SavedSearchType.php - Retrieves all field definitions defined by notification plugins.
File
- src/
Entity/ SavedSearchType.php, line 321
Class
- SavedSearchType
- Provides an entity type for configuring how searches can be saved.
Namespace
Drupal\search_api_saved_searches\EntityCode
public function getNotificationPlugins() {
if ($this->notificationPluginInstances === NULL) {
$this->notificationPluginInstances = \Drupal::getContainer()
->get('plugin.manager.search_api_saved_searches.notification')
->createPlugins($this, array_keys($this->notification_settings));
}
return $this->notificationPluginInstances;
}