summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/locale/locale.install
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/locale/locale.install')
-rw-r--r--core/modules/locale/locale.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install
index 0b204f7103d..97422682472 100644
--- a/core/modules/locale/locale.install
+++ b/core/modules/locale/locale.install
@@ -13,7 +13,7 @@ use Drupal\Core\Url;
/**
* Implements hook_install().
*/
-function locale_install() {
+function locale_install(): void {
// Create the interface translations directory and ensure it's writable.
if (!$directory = \Drupal::config('locale.settings')->get('translation.path')) {
$site_path = \Drupal::getContainer()->getParameter('site.path');
@@ -32,7 +32,7 @@ function locale_install() {
/**
* Implements hook_uninstall().
*/
-function locale_uninstall() {
+function locale_uninstall(): void {
$config = \Drupal::config('locale.settings');
// Delete all JavaScript translation files.
$locale_js_directory = 'public://' . $config->get('javascript.directory');