prometheusio_exporter-8.x-1.x-dev/prometheusio_exporter.install
prometheusio_exporter.install
<?php
/**
* @file
* This is the Prometheus Exporter module for exporting metrics.
*/
/**
* Implements hook_requirements().
*/
function prometheusio_exporter_requirements($phase) {
$requirements = [];
if ($phase === 'install' && \Drupal::service('module_handler')->moduleExists('webprofiler')) {
$requirements['prometheusio_exporter_incompatible_with_webprofiler'] = [
'title' => t('PrometheusIO exporter incompatible with webprofiler.'),
'description' => t('PrometheusIO exporter is incompatible with webprofiler, please uninstall webprofiler first.'),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}
