You are here

RedirectInterface.php in File (Field) Paths 8

File

src/RedirectInterface.php
View source
<?php

namespace Drupal\filefield_paths;

use Drupal\Core\Language\Language;

/**
 * Defines a service for creating file redirects.
 */
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);

}

Interfaces

Namesort descending Description
RedirectInterface Defines a service for creating file redirects.