trait CalendarEventExceptionLoggerTrait in Opigno calendar event 8
Same name and namespace in other branches
- 3.x src/CalendarEventExceptionLoggerTrait.php \Drupal\opigno_calendar_event\CalendarEventExceptionLoggerTrait
Logs exceptions thrown in the the Calendar Event codebase.
@internal
Hierarchy
- trait \Drupal\opigno_calendar_event\CalendarEventExceptionLoggerTrait
4 files declare their use of CalendarEventExceptionLoggerTrait
- CalendarEventEmbeddedWidget.php in src/
Form/ CalendarEventEmbeddedWidget.php - CalendarEventForm.php in src/
Form/ CalendarEventForm.php - CalendarEventTypeForm.php in src/
Form/ CalendarEventTypeForm.php - GroupSelectorWidget.php in modules/
opigno_calendar_event_group/ src/ GroupSelectorWidget.php
File
- src/
CalendarEventExceptionLoggerTrait.php, line 10
Namespace
Drupal\opigno_calendar_eventView source
trait CalendarEventExceptionLoggerTrait {
/**
* Logs an exception.
*
* @param \Exception $e
* The exception object to be logged.
*/
protected function logException(\Exception $e) {
watchdog_exception('opigno_calendar_event', $e);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CalendarEventExceptionLoggerTrait:: |
protected | function | Logs an exception. |