public function PhpTransliteration::__construct in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::__construct()
- 10 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
- 9 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
Constructs a transliteration object.
Parameters
string $data_directory: (optional) The directory where data files reside. If omitted, defaults to subdirectory 'data' underneath the directory where the class's PHP file resides.
File
- core/
lib/ Drupal/ Component/ Transliteration/ PhpTransliteration.php, line 84
Class
- PhpTransliteration
- Implements transliteration without using the PECL extensions.
Namespace
Drupal\Component\TransliterationCode
public function __construct($data_directory = NULL) {
$this->dataDirectory = isset($data_directory) ? $data_directory : __DIR__ . '/data';
}