function locale_install
Same name and namespace in other branches
- 10 core/modules/locale/locale.install \locale_install()
- 11.x core/modules/locale/locale.install \locale_install()
- 9 core/modules/locale/locale.install \locale_install()
- 8.9.x core/modules/locale/locale.install \locale_install()
- 7.x modules/locale/locale.install \locale_install()
Implements hook_install().
File
-
core/
modules/ locale/ locale.install, line 15
Code
function locale_install() : void {
// Create the interface translations directory and ensure it's writable.
$directory = TranslationsStream::basePath();
\Drupal::service('file_system')->prepareDirectory($directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.