getMap example

/** * Reacts to map save event. * * @param \Drupal\migrate\Event\MigrateMapSaveEvent $event * The migration event. * @param string $name * The event name. */
  public function mapSaveEventRecorder(MigrateMapSaveEvent $event$name) {
    $this->state->set('migrate_events_test.map_save_event', [
      'event_name' => $name,
      'map' => $event->getMap(),
      'fields' => $event->getFields(),
    ]);
  }

  /** * Reacts to map delete event. * * @param \Drupal\migrate\Event\MigrateMapDeleteEvent $event * The migration event. * @param string $name * The event name. */
Home | Imprint | This part of the site doesn't use cookies.