You are here

trait CalendarEventExceptionLoggerTrait in Opigno calendar event 8

Same name and namespace in other branches
  1. 3.x src/CalendarEventExceptionLoggerTrait.php \Drupal\opigno_calendar_event\CalendarEventExceptionLoggerTrait

Logs exceptions thrown in the the Calendar Event codebase.

@internal

Hierarchy

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_event
View 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