Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Drupal 8 Global variables - Globals

By editor , 24 December, 2015

 

 

Name Location Description
$base_insecure_url core/globals.api.php The insecure base URL of the Drupal installation.
$base_path core/globals.api.php The base path of the Drupal installation.
$base_root core/globals.api.php The root URL of the host, excluding the path. The hostname
$base_secure_url core/globals.api.php The secure base URL of the Drupal installation.
$base_url core/globals.api.php The base URL of the Drupal installation.
$conf core/globals.api.php Allows defining of site-specific service providers for the Drupal kernel.
$config core/globals.api.php Array of configuration overrides from the settings.php file.
$config_directories core/globals.api.php The location of file system directories used for site configuration data.
$install_state core/globals.api.php Store settings and profile information during installation process.
$pager_limits core/globals.api.php Array of the number of items per page for each pager.
$pager_page_array core/globals.api.php Array of current page numbers for each pager.
$pager_total core/globals.api.php Array of the total number of pages for each pager.
$pager_total_items core/globals.api.php Array of the total number of items for each pager.

Link : https://api.drupal.org/api/drupal/globals/8

Tags

  • Drupal 8
  • Code
Save a temporary data - Key Value Expirable.

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer