private function addDependencyOperations() {
    $operations = [];

    foreach ($this->dependencies as $module => $type) {
      $operations[] = [
        [static::class, 'installDependency'],
        [
          $module,
          $type,
        ],
      ];
    }

    return $operations;
  }
private function addDependencyOperations() {
    $operations = [];

    foreach ($this->dependencies as $module => $type) {
      $operations[] = [
        [static::class, 'installDependency'],
        [
          $module,
          $type,
        ],
      ];
    }

    return $operations;
  }
private function addDependencyOperations ( ) { $ operations = [ ] ; foreach ( $ this -> dependencies as $ module => $ type ) { $ operations [ ] = [ [ static :: class , 'installDependency' ] , [ $ module , $ type , ] , ] ; } return $ operations ; }
Crates a set of batch operations to install all required dependencies.

@return array
A set of Drupal batch operations.
Crates a set of batch operations to install all required dependencies .