Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/system/tests/fixtures/update/drupal-8.page-title-into-block-2476947.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
38 ->fetchField(); | 38 ->fetchField(); |
39 $existing_blocks = unserialize($existing_blocks); | 39 $existing_blocks = unserialize($existing_blocks); |
40 | 40 |
41 $connection->update('key_value') | 41 $connection->update('key_value') |
42 ->fields([ | 42 ->fields([ |
43 'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_page_title'])) | 43 'value' => serialize(array_merge($existing_blocks, ['block.block.bartik_page_title'])), |
44 ]) | 44 ]) |
45 ->condition('collection', 'config.entity.key_store.block') | 45 ->condition('collection', 'config.entity.key_store.block') |
46 ->condition('name', 'theme:bartik') | 46 ->condition('name', 'theme:bartik') |
47 ->execute(); | 47 ->execute(); |
48 | 48 |
53 ->execute() | 53 ->execute() |
54 ->fetchField(); | 54 ->fetchField(); |
55 $extensions = unserialize($extensions); | 55 $extensions = unserialize($extensions); |
56 $connection->update('config') | 56 $connection->update('config') |
57 ->fields([ | 57 ->fields([ |
58 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])) | 58 'data' => serialize(array_merge_recursive($extensions, ['theme' => ['test_theme' => 0]])), |
59 ]) | 59 ]) |
60 ->condition('name', 'core.extension') | 60 ->condition('name', 'core.extension') |
61 ->execute(); | 61 ->execute(); |