protected function MediaEntityFileRedirectMatcher::buildPath in Media Entity File Redirect 8
File
- src/
Plugin/ Linkit/ Matcher/ MediaEntityFileRedirectMatcher.php, line 34
Class
- MediaEntityFileRedirectMatcher
- Provides a LinkIt matcher for returning media entities.
Namespace
Drupal\media_entity_file_redirect\Plugin\Linkit\MatcherCode
protected function buildPath(EntityInterface $entity) {
return Url::fromRoute('media_entity_file_redirect.file_redirect', [
'media' => $entity
->id(),
])
->toString();
}