5 * Contains database additions to drupal-8.bare.standard.php.gz for testing the
6 * upgrade path of editor_update_8001().
9 use Drupal\Core\Database\Database;
11 $connection = Database::getConnection();
13 // Simulate an un-synchronized environment.
15 // Disable the 'basic_html' editor.
16 $data = $connection->select('config')
17 ->fields('config', ['data'])
18 ->condition('name', 'editor.editor.basic_html')
21 $data = unserialize($data);
22 $data['status'] = FALSE;
23 $connection->update('config')
24 ->fields(['data' => serialize($data)])
25 ->condition('name', 'editor.editor.basic_html')
28 // Disable the 'full_html' text format.
29 $data = $connection->select('config')
30 ->fields('config', ['data'])
31 ->condition('name', 'filter.format.full_html')
34 $data = unserialize($data);
35 $data['status'] = FALSE;
36 $connection->update('config')
37 ->fields(['data' => serialize($data)])
38 ->condition('name', 'filter.format.full_html')