You are here

public function NotificationPluginBase::setSavedSearchType in Search API Saved Searches 8

Sets the saved search type.

Parameters

\Drupal\search_api_saved_searches\SavedSearchTypeInterface $type: The new saved search type for this plugin.

Return value

$this

Overrides NotificationPluginInterface::setSavedSearchType

1 call to NotificationPluginBase::setSavedSearchType()
NotificationPluginBase::__construct in src/Notification/NotificationPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Notification/NotificationPluginBase.php, line 69

Class

NotificationPluginBase
Defines a base class for notification plugins.

Namespace

Drupal\search_api_saved_searches\Notification

Code

public function setSavedSearchType(SavedSearchTypeInterface $type) {
  $this->savedSearchType = $type;
  return $this;
}