queue_stats-8.x-1.0-beta1/queue_stats.install

queue_stats.install
<?php

/**
 * @file
 * Install and update routines for queue stats.
 */

/**
 * Reset queue statistics.
 */
function queue_stats_update_8001() {
  queue_stats_reset_statistics();
}

/**
 * Reset all statistics.
 *
 * This can be helpful when updating the data structure as obsolete objects may
 * not deserialize nicely.
 */
function queue_stats_reset_statistics() {
  /* @var \Drupal\queue_stats\Plugin\QueueStatisticManager $queue_stats_manager */
  $queue_stats_manager = \Drupal::service('plugin.manager.queue_stat');
  $queue_stats_manager->resetStatistics();
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc