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/log/birth/src/EventSubscriber/LogEventSubscriber.php, line 40

Class

LogEventSubscriber
Sync child asset fields to reflect those saved in a birth log.

Namespace

Drupal\farm_birth\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    LogEvent::INSERT => 'syncBirthChildren',
    LogEvent::UPDATE => 'syncBirthChildren',
  ];
}