public function FileUrl::resolve in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Media/FileUrl.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Media\FileUrl::resolve()
Resolves the request to the requested values.
Parameters
string $uri: The file URI.
\Drupal\Core\Cache\RefinableCacheableDependencyInterface $metadata: Cacheability metadata for this request.
Return value
string The file URL.
File
- modules/
custom/ social_graphql/ src/ Plugin/ GraphQL/ DataProducer/ Media/ FileUrl.php, line 38
Class
- FileUrl
- Convert file URI to URL.
Namespace
Drupal\social_graphql\Plugin\GraphQL\DataProducer\MediaCode
public function resolve($uri, RefinableCacheableDependencyInterface $metadata) {
return file_create_url($uri);
}