Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Routing/RouteCompiler.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
29 * | 29 * |
30 * @return \Drupal\Core\Routing\CompiledRoute | 30 * @return \Drupal\Core\Routing\CompiledRoute |
31 * A CompiledRoute instance. | 31 * A CompiledRoute instance. |
32 */ | 32 */ |
33 public static function compile(Route $route) { | 33 public static function compile(Route $route) { |
34 | 34 // Symfony 4 requires that all UTF-8 route patterns have the "utf8" option |
35 // set and Drupal does not support non UTF-8 routes. | |
36 $route->setOption('utf8', TRUE); | |
35 $symfony_compiled = parent::compile($route); | 37 $symfony_compiled = parent::compile($route); |
36 | 38 |
37 // The Drupal-specific compiled information. | 39 // The Drupal-specific compiled information. |
38 $stripped_path = static::getPathWithoutDefaults($route); | 40 $stripped_path = static::getPathWithoutDefaults($route); |
39 $fit = static::getFit($stripped_path); | 41 $fit = static::getFit($stripped_path); |