public function NotificationPluginBase::__construct in Search API Saved Searches 8
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ConfigurablePluginBase::__construct
File
- src/
Notification/ NotificationPluginBase.php, line 51
Class
- NotificationPluginBase
- Defines a base class for notification plugins.
Namespace
Drupal\search_api_saved_searches\NotificationCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
if (!empty($configuration['#saved_search_type']) && $configuration['#saved_search_type'] instanceof SavedSearchTypeInterface) {
$this
->setSavedSearchType($configuration['#saved_search_type']);
unset($configuration['#saved_search_type']);
}
parent::__construct($configuration, $plugin_id, $plugin_definition);
}