legacy-bulk-form-update.php 392 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * @file
  4. * Test fixture.
  5. */
  6. use Drupal\Core\Database\Database;
  7. use Drupal\Core\Serialization\Yaml;
  8. $connection = Database::getConnection();
  9. $connection->insert('config')
  10. ->fields([
  11. 'collection' => '',
  12. 'name' => 'views.view.legacy_bulk_form',
  13. 'data' => serialize(Yaml::decode(file_get_contents(__DIR__ . '/views.view.legacy_bulk_form.yml'))),
  14. ])
  15. ->execute();