Skip to content
Snippets Groups Projects
Commit 5e5ac012 authored by Al Munnings's avatar Al Munnings
Browse files

Issue #3432965: Change url to path

parent bf8e261e
Branches
Tags
No related merge requests found
Pipeline #141146 canceled
......@@ -89,7 +89,7 @@ class LanguageSchemaExtension extends ResolverOnlySchemaExtensionPluginBase impl
$registry->addFieldResolver(
'Translation',
'url',
'path',
$builder->compose(
$builder->produce('entity_url')
->map('entity', $builder->fromParent()),
......
......@@ -39,7 +39,7 @@ class TranslationType extends GraphQLComposeSchemaTypeBase {
'type' => Type::nonNull(static::type('Language')),
'description' => (string) $this->t('The language of the translation.'),
],
'url' => [
'path' => [
'type' => Type::string(),
'description' => (string) $this->t('The language name.'),
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment