public static function LogEventSubscriber::getSubscribedEvents in farmOS 2.x
Same name in this branch
- 2.x modules/log/birth/src/EventSubscriber/LogEventSubscriber.php \Drupal\farm_birth\EventSubscriber\LogEventSubscriber::getSubscribedEvents()
- 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\EventSubscriberCode
public static function getSubscribedEvents() {
return [
LogEvent::INSERT => 'syncBirthChildren',
LogEvent::UPDATE => 'syncBirthChildren',
];
}