Database::$ignoreTargets

A list of key/target credentials to simply ignore. Type: array File core/lib/Drupal/Core/Database/Database.php, line 57 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code static protected $ignoreTargets = array();

Database::$databaseInfo

A processed copy of the database connection information from settings.php. Type: array File core/lib/Drupal/Core/Database/Database.php, line 50 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code static protected $databaseInfo = array();

Database::$connections

An nested array of all active connections. It is keyed by database name and target. Type: array File core/lib/Drupal/Core/Database/Database.php, line 43 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code static protected $connections = array();

Database::$activeKey

The key of the currently active database connection. Type: string File core/lib/Drupal/Core/Database/Database.php, line 64 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code static protected $activeKey = 'default';

database.inc

Core systems for the database layer. Classes required for basic functioning of the database system should be placed in this file. All utility functions should also be placed in this file only, as they cannot auto-load the way classes can. File core/includes/database.inc Functions Name Description db_add_field Deprecated Adds a new field to a table. db_add_index Deprecated Adds an index. db_add_primary_key Deprecated Adds a primary key to a database table. db_add_unique_key D

Database abstraction layer

Allow the use of different database servers using the same code base. Overview Drupal's database abstraction layer provides a unified database query API that can query different underlying databases. It is built upon PHP's PDO (PHP Data Objects) database API, and inherits much of its syntax and semantics. Besides providing a unified API for database queries, the database abstraction layer also provides a structured way to construct complex queries, and it protects the database by using good sec

Database

Primary front-controller for the database system. This class is uninstantiatable and un-extendable. It acts to encapsulate all control and shepherding of database connections into a single location without the use of globals. Hierarchy class \Drupal\Core\Database\Database File core/lib/Drupal/Core/Database/Database.php, line 12 Namespace Drupal\Core\Database Members Name Modifiers Type Description Database::$activeKey static protected property The key of the currently ac

CustomStrings::__construct

public CustomStrings::__construct(Settings $settings) Constructs a CustomStrings object. Parameters \Drupal\Core\Site\Settings $settings: The settings read only object. Overrides StaticTranslation::__construct File core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 28 Class CustomStrings String translator using overrides from variables. Namespace Drupal\Core\StringTranslation\Translator Code public function __construct(Settings $settings) { parent::__construct

CustomStrings::getLanguage

protected CustomStrings::getLanguage($langcode) Retrieves translations for a given language. Parameters string $langcode: The langcode of the language. Return value array A multidimensional array of translations, indexed by the context the source string belongs to. The second level is using original strings as keys. An empty array will be returned when no translations are available. Overrides StaticTranslation::getLanguage File core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.p

CustomStrings::$settings

The settings read only object. Type: \Drupal\Core\Site\Settings File core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 20 Class CustomStrings String translator using overrides from variables. Namespace Drupal\Core\StringTranslation\Translator Code protected $settings;