You are here

interface RedirectInterface in File (Field) Paths 8

Defines a service for creating file redirects.

Hierarchy

Expanded class hierarchy of RedirectInterface

All classes that implement RedirectInterface

File

src/RedirectInterface.php, line 10

Namespace

Drupal\filefield_paths
View 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

Namesort descending Modifiers Type Description Overrides
RedirectInterface::createRedirect public function Creates a redirect for a moved File field. 1