Same name and namespace in other branches
  1. 7.x-2.x advagg.module \advagg_get_global_counter() 1 commentaire

Return the global_counter variable.

Return value

int Int value.

3 calls to advagg_get_global_counter()
advagg_drush_help dans ./advagg.drush.inc
Implements hook_drush_help().
InitSubscriber::onEvent dans advagg_mod/src/EventSubscriber/InitSubscriber.php
Synchronize global_counter variable between sites.
OperationsForm::buildForm dans src/Form/OperationsForm.php

Fichier

./advagg.module, line 553

Code

function advagg_get_global_counter() {
    $counter =& drupal_static(__FUNCTION__);
    if (!$counter) {
        $counter = \Drupal::config('advagg.settings')->get('global_counter');
        if ($counter === NULL) {
            $counter = 0;
        }
    }
    return $counter;
}