You are here

function bulk_update_fields_update_8001 in Bulk Update Fields 8.2

Same name and namespace in other branches
  1. 8 bulk_update_fields.install \bulk_update_fields_update_8001()

Rename the action id to match the plugin.

Needed for Contrib VBO compatibility.

File

./bulk_update_fields.install, line 13
Contains install and update functions for Bulk Update Fields.

Code

function bulk_update_fields_update_8001(&$sandbox) {
  $actions_storage = \Drupal::entityTypeManager()
    ->getStorage('action');
  $bulk_update_fields_action = $actions_storage
    ->load('bulk_update_fields_to_another_value');
  $bulk_update_fields_action
    ->set('id', 'bulk_update_fields_action_base')
    ->save();
  $actions_storage
    ->resetCache();
}