function StringDatabaseStorage::__construct
Same name in other branches
- 9 core/modules/locale/src/StringDatabaseStorage.php \Drupal\locale\StringDatabaseStorage::__construct()
- 8.9.x core/modules/locale/src/StringDatabaseStorage.php \Drupal\locale\StringDatabaseStorage::__construct()
- 11.x core/modules/locale/src/StringDatabaseStorage.php \Drupal\locale\StringDatabaseStorage::__construct()
Constructs a new StringDatabaseStorage class.
Parameters
\Drupal\Core\Database\Connection $connection: A Database connection to use for reading and writing configuration data.
array $options: (optional) Any additional database connection options to use in queries.
File
-
core/
modules/ locale/ src/ StringDatabaseStorage.php, line 35
Class
- StringDatabaseStorage
- Defines a class to store localized strings in the database.
Namespace
Drupal\localeCode
public function __construct(Connection $connection, array $options = []) {
$this->connection = $connection;
$this->options = $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.