drd_agent.install in DRD Agent 8.3
Same filename and directory in other branches
File
drd_agent.installView 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
Name | Description |
---|---|
drd_agent_requirements | Implements hook_requirements(). |