Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / field / tests / fixtures / update / drupal-8.remove_handler_submit_setting-2715589.php
1 <?php
2
3 /**
4  * @file
5  * Provides necessary database additions for testing
6  * field_post_update_remove_handler_submit_setting()
7  */
8
9 use Drupal\Core\Database\Database;
10
11 $connection = Database::getConnection();
12
13 $config = unserialize($connection->select('config', 'c')
14   ->fields('c', ['data'])
15   ->condition('collection', '')
16   ->condition('name', 'field.field.node.article.field_tags')
17   ->execute()
18   ->fetchField());
19
20 $config['settings']['handler_submit'] = 'Change handler';
21
22 $connection->update('config')
23   ->fields(['data' => serialize($config)])
24   ->condition('collection', '')
25   ->condition('name', 'field.field.node.article.field_tags')
26   ->execute();