addAllFieldProcesses example

$container->get('plugin.manager.migrate.id_map'),
      $container->get('migrate_drupal.field_discovery')
    );
  }

  /** * {@inheritdoc} */
  public function getProcess() {
    if (!$this->init) {
      $this->init = TRUE;
      $this->fieldDiscovery->addAllFieldProcesses($this);
    }
    return parent::getProcess();
  }

}
'migration_tags' => ['Drupal ' . $core],
      'field_plugin_method' => $field_plugin_method,
    ];
    $migration = $migration_plugin_manager->createStubMigration($definition);
    if ($bundle) {
      $field_discovery->addBundleFieldProcesses($migration$entity_type_id$bundle);
    }
    elseif ($entity_type_id) {
      $field_discovery->addEntityFieldProcesses($migration$entity_type_id);
    }
    else {
      $field_discovery->addAllFieldProcesses($migration);
    }
    $actual_process = $migration->getProcess();
    $this->assertSame($expected_process$actual_process);
  }

  /** * Asserts the field discovery returns the expected processes. * * @param \Drupal\migrate_drupal\FieldDiscoveryInterface $field_discovery * The Field Discovery service. * @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager * The migration plugin manager service. * @param string $core * The Drupal core version, either '6', or '7'. * @param array $expected_process_keys * (optional) The expected resulting process_keys. * @param string $entity_type_id * (optional) The entity type id. * @param string $bundle * (optional) The bundle. */
Home | Imprint | This part of the site doesn't use cookies.