W3cubDocs

/Drupal 8

bootstrap.inc

Functions that need to be loaded on every Drupal request.

File

core/includes/bootstrap.inc

Functions

Name Description
config_get_config_directory Returns the path of a configuration directory.
drupal_classloader_register Registers an additional namespace.
drupal_generate_test_ua Generates a user agent string with a HMAC and timestamp for simpletest.
drupal_get_filename Returns and optionally sets the filename for a system resource.
drupal_get_messages Returns all messages that have been set with drupal_set_message().
drupal_get_path Returns the path to a system item (module, theme, etc.).
drupal_get_profile Gets the name of the currently active installation profile.
drupal_get_user_timezone Returns the time zone of the current user.
drupal_installation_attempted Returns TRUE if a Drupal installation is currently being attempted.
drupal_maintenance_theme Enables use of the theme system without requiring database access.
drupal_placeholder Deprecated Formats text for emphasized display in a placeholder inside a sentence.
drupal_register_shutdown_function Registers a function for execution on shutdown.
drupal_set_message Sets a message to display to the user.
drupal_static Provides central static variable storage.
drupal_static_reset Resets one or all centrally stored static variable(s).
drupal_validate_utf8 Deprecated Checks whether a string is valid UTF-8.
drupal_valid_test_ua Returns the test prefix if this is an internal request from SimpleTest.
format_string Deprecated Formats a string for HTML display by replacing variable placeholders.
t Translates a string to the current language or to a given language.
watchdog_exception Logs an exception.
_drupal_error_handler Provides custom PHP error handling.
_drupal_exception_handler Provides custom PHP exception handling.
_drupal_exception_handler_additional Displays any additional errors caught while handling an exception.
_drupal_shutdown_function Executes registered shutdown functions.
_drupal_shutdown_function_handle_exception Displays and logs any errors that may happen during shutdown.

Constants

Name Description
CONFIG_ACTIVE_DIRECTORY Deprecated $config_directories key for active directory.
CONFIG_STAGING_DIRECTORY Deprecated $config_directories key for staging directory.
CONFIG_SYNC_DIRECTORY $config_directories key for sync directory.
DRUPAL_ANONYMOUS_RID Deprecated Role ID for anonymous users; should match what's in the "role" table.
DRUPAL_AUTHENTICATED_RID Deprecated Role ID for authenticated users; should match what's in the "role" table.
DRUPAL_EXTENSION_NAME_MAX_LENGTH The maximum number of characters in a module or theme name.
DRUPAL_MINIMUM_PHP Minimum supported version of PHP.
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT Minimum recommended value of PHP memory_limit.
DRUPAL_PHP_FUNCTION_PATTERN Regular expression to match PHP function names.
DRUPAL_ROOT Defines the root directory of the Drupal installation.
ERROR_REPORTING_DISPLAY_ALL Error reporting level: display all messages.
ERROR_REPORTING_DISPLAY_SOME Error reporting level: display errors and warnings.
ERROR_REPORTING_DISPLAY_VERBOSE Error reporting level: display all messages, plus backtrace information.
ERROR_REPORTING_HIDE Error reporting level: display no errors.
REQUEST_TIME Time of the current request in seconds elapsed since the Unix Epoch.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!bootstrap.inc/8.1.x