public function createInstances(array $plugin_ids, array $configurations = []) {
    $instances = [];

    foreach ($plugin_ids as $plugin_id) {
      $configuration = isset($configurations[$plugin_id]) ? $configurations[$plugin_id] : [];
      $instances[$plugin_id] = static::createInstance($plugin_id, $configuration);
    }

    return $instances;
  }
public function createInstances(array $plugin_ids, array $configurations = []) {
    $instances = [];

    foreach ($plugin_ids as $plugin_id) {
      $configuration = isset($configurations[$plugin_id]) ? $configurations[$plugin_id] : [];
      $instances[$plugin_id] = static::createInstance($plugin_id, $configuration);
    }

    return $instances;
  }
public function createInstances ( array $ plugin_ids , array $ configurations = [ ] ) { $ instances = [ ] ; foreach ( $ plugin_ids as $ plugin_id ) { $ configuration = isset ( $ configurations [ $ plugin_id ] ) ? $ configurations [ $ plugin_id ] : [ ] ; $ instances [ $ plugin_id ] = static :: createInstance ( $ plugin_id , $ configuration ) ; } return $ instances ; }
Create multiple instances.

@param array $plugin_ids
Identifiers of plugins.
@param array $configurations
Array with configuration for all plugins.

@return array
Array with instances of the plugins.
Create multiple instances .