function PhpTransliteration::__construct
Same name in this branch
- 10 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::__construct()
- 9 core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
- 8.9.x core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::__construct()
- 8.9.x core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
- 11.x core/lib/Drupal/Core/Transliteration/PhpTransliteration.php \Drupal\Core\Transliteration\PhpTransliteration::__construct()
- 11.x core/lib/Drupal/Component/Transliteration/PhpTransliteration.php \Drupal\Component\Transliteration\PhpTransliteration::__construct()
Constructs a PhpTransliteration object.
Parameters
string $data_directory: The directory where data files reside. If NULL, 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 32
Class
- PhpTransliteration
- Enhances PhpTransliteration with an alter hook.
Namespace
Drupal\Core\TransliterationCode
public function __construct($data_directory, ModuleHandlerInterface $module_handler) {
parent::__construct($data_directory);
$this->moduleHandler = $module_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.