You are here

public static function LogEventSubscriber::getSubscribedEvents in farmOS 2.x

Same name in this branch
  1. 2.x modules/log/birth/src/EventSubscriber/LogEventSubscriber.php \Drupal\farm_birth\EventSubscriber\LogEventSubscriber::getSubscribedEvents()
  2. 2.x modules/core/owner/src/EventSubscriber/LogEventSubscriber.php \Drupal\farm_owner\EventSubscriber\LogEventSubscriber::getSubscribedEvents()

Return value

array The event names to listen for, and the methods that should be executed.

File

modules/core/owner/src/EventSubscriber/LogEventSubscriber.php, line 37

Class

LogEventSubscriber
Perform actions on log presave.

Namespace

Drupal\farm_owner\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    LogEvent::PRESAVE => 'setLogOwner',
  ];
}