function ga_requirements in Googalytics - Google Analytics 8
Implements hook_requirements().
File
- ./
ga.install, line 13 - Contains ga module installation and update hooks.
Code
function ga_requirements($phase) {
$requirements = [];
if ($phase == 'runtime' && \Drupal::moduleHandler()
->moduleExists('gacsp')) {
$requirements['ga_gacsp'] = [
'severity' => REQUIREMENT_WARNING,
'title' => new TranslatableMarkup('gacsp module'),
'value' => new TranslatableMarkup('Enabled'),
'description' => new TranslatableMarkup('To prevent duplicate tracking, Googalytics will not activate until gacsp module is uninstalled.'),
];
}
return $requirements;
}