You are here

public function GeolocationGeometryDataBase::getBatch in Geolocation Field 8.3

Return this batch.

Return value

array Batch return.

File

modules/geolocation_geometry/modules/geolocation_geometry_data/src/GeolocationGeometryDataBase.php, line 56

Class

GeolocationGeometryDataBase
Class GeolocationGeometryDataBase.

Namespace

Drupal\geolocation_geometry_data

Code

public function getBatch() {
  $operations = [
    [
      [
        $this,
        'download',
      ],
      [],
    ],
    [
      [
        $this,
        'import',
      ],
      [],
    ],
  ];
  return [
    'title' => t('Import Shapefile'),
    'operations' => $operations,
    'progress_message' => t('Finished step @current / @total.'),
    'init_message' => t('Import is starting.'),
    'error_message' => t('Something went horribly wrong.'),
  ];
}