You are here

public function ImportConfigManipulator::getImportProcessorsByStages in Entity Share 8.3

Loads this import config's processors for a specific stage.

Parameters

\Drupal\entity_share_client\Entity\ImportConfigInterface $import_config: The import config.

array[] $overrides: (optional) Overrides to apply to the import config's processors, keyed by processor IDs with their respective overridden settings as values.

Return value

\Drupal\entity_share_client\ImportProcessor\ImportProcessorInterface[][] An array of all enabled processors that support the given stage for each stage, ordered by the weight for that stage.

Overrides ImportConfigManipulatorInterface::getImportProcessorsByStages

File

modules/entity_share_client/src/Service/ImportConfigManipulator.php, line 118

Class

ImportConfigManipulator
Class ImportConfigManipulator.

Namespace

Drupal\entity_share_client\Service

Code

public function getImportProcessorsByStages(ImportConfigInterface $import_config, array $overrides = []) {
  $return_processors = [];
  $stages = $this->importProcessorPluginManager
    ->getProcessingStages();
  foreach (array_keys($stages) as $stage) {
    $return_processors[$stage] = $this
      ->getImportProcessorsByStage($import_config, $stage, $overrides);
  }
  return $return_processors;
}