Class UrlTransformDataFetcher
java.lang.Object
org.craftercms.engine.graphql.impl.fetchers.RequestAwareDataFetcher
org.craftercms.engine.graphql.impl.fetchers.UrlTransformDataFetcher
- All Implemented Interfaces:
graphql.schema.DataFetcher
Implementation of
DataFetcher
that transforms a field using a UrlTransformationService
- Since:
- 3.1.1
- Author:
- joseross
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoGet
(graphql.schema.DataFetchingEnvironment environment) Performs the actual fetching of the requested fields.void
setUrlTransformationService
(UrlTransformationService urlTransformationService) Methods inherited from class org.craftercms.engine.graphql.impl.fetchers.RequestAwareDataFetcher
get
-
Field Details
-
urlTransformationService
-
-
Constructor Details
-
UrlTransformDataFetcher
public UrlTransformDataFetcher()
-
-
Method Details
-
setUrlTransformationService
-
doGet
Performs the actual fetching of the requested fields.- Specified by:
doGet
in classRequestAwareDataFetcher
- Parameters:
environment
- theDataFetchingEnvironment
- Returns:
- the resolved value
-