globals.api.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. /**
  3. * @file
  4. * These are the global variables that Drupal uses.
  5. */
  6. /**
  7. * The insecure base URL of the Drupal installation.
  8. *
  9. * @see \Drupal\Core\DrupalKernel::initializeRequestGlobals()
  10. */
  11. global $base_insecure_url;
  12. /**
  13. * The base path of the Drupal installation.
  14. *
  15. * This will at least default to '/'.
  16. *
  17. * @see \Drupal\Core\DrupalKernel::initializeRequestGlobals()
  18. */
  19. global $base_path;
  20. /**
  21. * The root URL of the host, excluding the path.
  22. *
  23. * @see \Drupal\Core\DrupalKernel::initializeRequestGlobals()
  24. */
  25. global $base_root;
  26. /**
  27. * The secure base URL of the Drupal installation.
  28. *
  29. * @see \Drupal\Core\DrupalKernel::initializeRequestGlobals()
  30. */
  31. global $base_secure_url;
  32. /**
  33. * The base URL of the Drupal installation.
  34. *
  35. * @see \Drupal\Core\DrupalKernel::initializeRequestGlobals()
  36. */
  37. global $base_url;
  38. /**
  39. * Allows defining of site-specific service providers for the Drupal kernel.
  40. *
  41. * To define a site-specific service provider class, use code like this:
  42. * @code
  43. * $GLOBALS['conf']['container_service_providers']['MyClassName'] = 'Drupal\My\Namespace\MyClassName';
  44. * @endcode
  45. *
  46. * @see \Drupal\Core\DrupalKernel::$serviceProviderClasses
  47. */
  48. global $conf;
  49. /**
  50. * Array of configuration overrides from the settings.php file.
  51. */
  52. global $config;
  53. /**
  54. * The location of file system directories used for site configuration data.
  55. *
  56. * @see drupal_install_config_directories()
  57. */
  58. global $config_directories;
  59. /**
  60. * Store settings and profile information during installation process.
  61. *
  62. * @see install_drupal()
  63. */
  64. global $install_state;
  65. /**
  66. * Array of the number of items per page for each pager.
  67. *
  68. * The array index is the pager element index (0 by default).
  69. *
  70. * @see pager_default_initialize()
  71. */
  72. global $pager_limits;
  73. /**
  74. * Array of current page numbers for each pager.
  75. *
  76. * The array index is the pager element index (0 by default).
  77. *
  78. * @see pager_default_initialize()
  79. */
  80. global $pager_page_array;
  81. /**
  82. * Array of the total number of pages for each pager.
  83. *
  84. * The array index is the pager element index (0 by default).
  85. *
  86. * @see pager_default_initialize()
  87. */
  88. global $pager_total;
  89. /**
  90. * Array of the total number of items for each pager.
  91. *
  92. * The array index is the pager element index (0 by default).
  93. *
  94. * @see pager_default_initialize()
  95. */
  96. global $pager_total_items;