l10n_server-2.x-dev/l10n_packager/l10n_packager.module

l10n_packager/l10n_packager.module
<?php

/**
 * @file
 * Primary module hooks for Localization packager module.
 */

declare(strict_types=1);

/**
 * Implements hook_cron().
 */
function l10n_packager_cron(): void {
  if (\Drupal::config('l10n_packager.settings')->get('cron')) {
    \Drupal::service('l10n_packager.packager')->checkUpdates();
  }

  // Queue releases to be parsed.
  // @codingStandardsIgnoreStart
  //$queue = \Drupal::queue('l10n_server_packager');
  //$storage = \Drupal::entityTypeManager()
    //->getStorage('l10n_packager_release');
  //$ids = $storage->getIdsToQueue();
  //foreach ($storage->loadMultiple($ids) as $release) {
    //if ($queue->createItem($release)) {
      //\Drupal::logger('cron')->info('Queued a packager release.');
    //}
  //}
  // @codingStandardsIgnoreStop
}

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

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