You are here

argument-placeholder.php in Drupal 8

Text fixture.

File

core/modules/views/tests/fixtures/update/argument-placeholder.php
View source
<?php

/**
 * @file
 * Text fixture.
 */
use Drupal\Core\Database\Database;
use Drupal\Core\Serialization\Yaml;
$connection = Database::getConnection();
$connection
  ->insert('config')
  ->fields([
  'collection' => '',
  'name' => 'views.view.test_token_view',
  'data' => serialize(Yaml::decode(file_get_contents('core/modules/views/tests/modules/views_test_config/test_views/views.view.test_token_view.yml'))),
])
  ->execute();