interface RedirectInterface in File (Field) Paths 8
Defines a service for creating file redirects.
Hierarchy
- interface \Drupal\filefield_paths\RedirectInterface
Expanded class hierarchy of RedirectInterface
All classes that implement RedirectInterface
File
- src/
RedirectInterface.php, line 10
Namespace
Drupal\filefield_pathsView source
interface RedirectInterface {
/**
* Creates a redirect for a moved File field.
*
* @param string $source
* The source file URL.
* @param string $path
* The moved file URL.
* @param \Drupal\Core\Language\Language $language
* The language of the source file.
*/
public function createRedirect($source, $path, Language $language);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RedirectInterface:: |
public | function | Creates a redirect for a moved File field. | 1 |