Issue #2800065 by GoZ: PhpTransliteration use data_directory default value as parameter before non-optional parameter

8.3.x
Alex Pott 2016-12-05 12:06:12 +00:00
parent 2c0f882800
commit f2275a5600
1 changed files with 3 additions and 4 deletions

View File

@ -24,13 +24,12 @@ class PhpTransliteration extends BaseTransliteration {
* Constructs a PhpTransliteration object. * Constructs a PhpTransliteration object.
* *
* @param string $data_directory * @param string $data_directory
* (optional) The directory where data files reside. If omitted, defaults * The directory where data files reside. If NULL, defaults to subdirectory
* to subdirectory 'data' underneath the directory where the class's PHP * 'data' underneath the directory where the class's PHP file resides.
* file resides.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler to execute the transliteration_overrides alter hook. * 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); parent::__construct($data_directory);
$this->moduleHandler = $module_handler; $this->moduleHandler = $module_handler;