public static function MigrationSubscriber::getSubscribedEvents in Simplenews 8.2
Same name and namespace in other branches
- 8 src/EventSubscriber/MigrationSubscriber.php \Drupal\simplenews\EventSubscriber\MigrationSubscriber::getSubscribedEvents()
- 3.x src/EventSubscriber/MigrationSubscriber.php \Drupal\simplenews\EventSubscriber\MigrationSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ MigrationSubscriber.php, line 88
Class
- MigrationSubscriber
- Create a simplenews field on relevant content types.
Namespace
Drupal\simplenews\EventSubscriberCode
public static function getSubscribedEvents() {
$return = [];
if (class_exists('\\Drupal\\migrate\\Event\\MigrateEvents')) {
$return[MigrateEvents::POST_ROW_SAVE][] = 'onMigrationPostRowSave';
}
return $return;
}