You are here

function google_map_field_update_8104 in Google Map Field 8

Adds traffic layer field.

File

./google_map_field.install, line 182
Contains google_map_field.install.

Code

function google_map_field_update_8104() {
  $columns_to_add = [
    'traffic',
  ];
  $processed_fields = google_map_field_add_columns_to_schema($columns_to_add);

  // Set correct state for previous updates.
  \Drupal::state()
    ->set('google_map_field_8001_processed', $processed_fields);
  \Drupal::state()
    ->set('google_map_field_8002_processed', $processed_fields);
  \Drupal::state()
    ->set('google_map_field_8003_processed', $processed_fields);

  // Set state for this update.
  \Drupal::state()
    ->set('google_map_field_8104_processed', $processed_fields);
}