Skip to content

Conversation

@dbosen
Copy link
Contributor

@dbosen dbosen commented Dec 8, 2021

This is based on #1194

@klausi klausi added the 4.x label Dec 20, 2021
* @return \Drupal\Core\Url|null
*/
public function resolve($path, RefinableCacheableDependencyInterface $metadata) {
public function resolve(string $path, ?string $language, RefinableCacheableDependencyInterface $metadata) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of allowing null, shouldn't the lang param have 'und' as default

$language = Language::LANGCODE_NOT_SPECIFIED

Copy link
Contributor

@klausi klausi Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, this is done in #1378

@klausi
Copy link
Contributor

klausi commented Nov 12, 2023

Oops, overlooked that there is a test case here. Thanks a lot! Will try to merge this in its current state and then fix it in #1378 .

@klausi klausi merged commit 28e9423 into drupal-graphql:8.x-4.x Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants