Skip to content
Snippets Groups Projects
Commit f9e7fa60 authored by David Maus's avatar David Maus
Browse files

New function: Trigger error event

* VuFindSearch/Service.php (triggerError): New function. Trigger error
  event.
parent fa186d19
No related merge requests found
...@@ -267,6 +267,19 @@ class Service ...@@ -267,6 +267,19 @@ class Service
return $this->backends[$backend]; return $this->backends[$backend];
} }
/**
* Trigger the error event.
*
* @param BackendException $exception Error exception
* @param array $args Event arguments
*
* @return void
*/
public function triggerError(BackendException $exception, $args)
{
$this->getEventManager()->trigger('error', $exception, $args);
}
/** /**
* Trigger the pre event. * Trigger the pre event.
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment