You are here

drupal-8.without_automated_cron.php in Zircon Profile 8

File

core/modules/system/tests/fixtures/update/drupal-8.without_automated_cron.php
View source
<?php

$connection = Drupal\Core\Database\Database::getConnection();
$config = $connection;
$connection
  ->merge('config')
  ->condition('name', 'system.cron')
  ->condition('collection', '')
  ->fields([
  'name' => 'system.cron',
  'collection' => '',
  'data' => serialize([
    'threshold' => [
      'autorun' => 0,
    ],
  ]),
])
  ->execute();