public PhpTransliteration::__construct($data_directory = NULL)
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 69
Class
- PhpTransliteration
- Implements transliteration without using the PECL extensions.
Namespace
Drupal\Component\Transliteration
Code
public function __construct($data_directory = NULL) { $this->dataDirectory = (isset($data_directory)) ? $data_directory : __DIR__ . '/data'; }
Please login to continue.