You are here

function advagg_get_global_counter in Advanced CSS/JS Aggregation 8.2

Same name and namespace in other branches
  1. 7.2 advagg.module \advagg_get_global_counter()

Return the global_counter variable.

Return value

int Int value.

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

File

./advagg.module, line 553
Advanced CSS/JS aggregation module.

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;
}