You are here

public function RedirectInterface::createRedirect in File (Field) Paths 8

Creates a redirect for a moved File field.

Parameters

string $source: The source file URL.

string $path: The moved file URL.

\Drupal\Core\Language\Language $language: The language of the source file.

1 method overrides RedirectInterface::createRedirect()
Redirect::createRedirect in src/Redirect.php
Creates a redirect for a moved File field.

File

src/RedirectInterface.php, line 22

Class

RedirectInterface
Defines a service for creating file redirects.

Namespace

Drupal\filefield_paths

Code

public function createRedirect($source, $path, Language $language);