| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function alter(ContainerBuilder $container) { |
||
| 17 | // Replace the language negotiator with a fixed one. |
||
| 18 | // Can be removed if this is fixed. |
||
| 19 | // https://www.drupal.org/project/drupal/issues/2952789 |
||
| 20 | if ($container->hasDefinition('language_negotiator')) { |
||
| 21 | $container->getDefinition('language_negotiator') |
||
| 22 | ->setClass(FixedLanguageNegotiator::class); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 27 |