function bulk_update_fields_update_8001 in Bulk Update Fields 8
Same name and namespace in other branches
- 8.2 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 11 - Install, update and uninstall functions for the profilename install profile.
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();
}