function TranslationsStream::getDirectoryPath

Same name in other branches
  1. 9 core/modules/locale/src/StreamWrapper/TranslationsStream.php \Drupal\locale\StreamWrapper\TranslationsStream::getDirectoryPath()
  2. 8.9.x core/modules/locale/src/StreamWrapper/TranslationsStream.php \Drupal\locale\StreamWrapper\TranslationsStream::getDirectoryPath()
  3. 10 core/modules/locale/src/StreamWrapper/TranslationsStream.php \Drupal\locale\StreamWrapper\TranslationsStream::getDirectoryPath()

Overrides LocalStream::getDirectoryPath

File

core/modules/locale/src/StreamWrapper/TranslationsStream.php, line 39

Class

TranslationsStream
Defines a Drupal translations (translations://) stream wrapper class.

Namespace

Drupal\locale\StreamWrapper

Code

public function getDirectoryPath() {
    return \Drupal::config('locale.settings')->get('translation.path');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.