PhpTransliteration::__construct

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';
}
doc_Drupal
2016-10-29 09:34:08
Comments
Leave a Comment

Please login to continue.