Commit 0cbec490 authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Issue #3317185 by jonathan1055, evgen: Skip migration row if getMigrationTags is null

parent 3eb0078a
Loading
Loading
Loading
Loading
+5 −0
Changes for scheduler.module: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1175,6 +1175,11 @@ function scheduler_cache_flush() {
 * Implements hook_migrate_prepare_row().
 */
function scheduler_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
  // getMigrationTags can return null for a custom migration, so skip these.
  if (is_null($migration->getMigrationTags())) {
    return;
  }

  // Process node type third-party-settings.
  if (in_array('Scheduler Settings', $migration->getMigrationTags())) {
    $scheduler_config_name = [