You are here

drd_agent.install in DRD Agent 8.3

Same filename and directory in other branches
  1. 6.3 drd_agent.install
  2. 7.3 drd_agent.install
  3. 4.0.x drd_agent.install

File

drd_agent.install
View source
<?php

use Drupal\drd_agent\Agent\Remote\Requirements;

/**
 * Implements hook_requirements().
 *
 * {@inheritdoc}
 */
function drd_agent_requirements($phase) {
  $requirements = [];
  if (!empty($_SERVER['HTTP_X_DRD_VERSION']) && $phase === 'runtime') {
    $requirements = Requirements::create(Drupal::getContainer())
      ->collect();
  }
  return $requirements;
}

Functions

Namesort descending Description
drd_agent_requirements Implements hook_requirements().