You are here

amp_test.module in Accelerated Mobile Pages (AMP) 7

Contains amp_test.module.

File

tests/amp_test.module
View source
<?php

/**
 * @file
 * Contains amp_test.module.
 */

// This is a little trick to make drupal CI work without composer manager.
// See https://www.drupal.org/node/2597778#comment-11838528
if (file_exists(DRUPAL_ROOT . '/vendor/autoload.php')) {
  require_once DRUPAL_ROOT . '/vendor/autoload.php';
}

// For sites that have the vendor folder outside the docroot.
if (file_exists(DRUPAL_ROOT . '/../../vendor/autoload.php')) {
  require_once DRUPAL_ROOT . '/../../vendor/autoload.php';
}

// For sites that have the vendor folder inside sites/all folder.
if (file_exists(DRUPAL_ROOT . '/sites/all/vendor/autoload.php')) {
  require_once DRUPAL_ROOT . '/sites/all/vendor/autoload.php';
}