Skip to content
Snippets Groups Projects
Commit f2275a56 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2800065 by GoZ: PhpTransliteration use data_directory default value as...

Issue #2800065 by GoZ: PhpTransliteration use data_directory default value as parameter before non-optional parameter
parent 2c0f8828
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -24,13 +24,12 @@ class PhpTransliteration extends BaseTransliteration {
* Constructs a PhpTransliteration object.
*
* @param 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.
* The directory where data files reside. If NULL, defaults to subdirectory
* 'data' underneath the directory where the class's PHP file resides.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler to execute the transliteration_overrides alter hook.
*/
public function __construct($data_directory = NULL, ModuleHandlerInterface $module_handler) {
public function __construct($data_directory, ModuleHandlerInterface $module_handler) {
parent::__construct($data_directory);
$this->moduleHandler = $module_handler;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment