W3cubDocs

/Drupal 8

public function PhpTransliteration::__construct

public PhpTransliteration::__construct($data_directory = NULL, ModuleHandlerInterface $module_handler)

Constructs a PhpTransliteration 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.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to execute the transliteration_overrides alter hook.

Overrides PhpTransliteration::__construct

File

core/lib/Drupal/Core/Transliteration/PhpTransliteration.php, line 33

Class

PhpTransliteration
Enhances PhpTransliteration with an alter hook.

Namespace

Drupal\Core\Transliteration

Code

public function __construct($data_directory = NULL, ModuleHandlerInterface $module_handler) {
  parent::__construct($data_directory);

  $this->moduleHandler = $module_handler;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Transliteration!PhpTransliteration.php/function/PhpTransliteration::__construct/8.1.x