You are here

interface Domain301RedirectManagerInterface in Domain 301 Redirect 8

Interface for Domain301RedirectManager.

Hierarchy

Expanded class hierarchy of Domain301RedirectManagerInterface

All classes that implement Domain301RedirectManagerInterface

1 file declares its use of Domain301RedirectManagerInterface
Domain301RedirectController.php in src/Controller/Domain301RedirectController.php

File

src/Domain301RedirectManagerInterface.php, line 8

Namespace

Drupal\domain_301_redirect
View source
interface Domain301RedirectManagerInterface {

  /**
   * Checks if a domain actually points to this site.
   *
   * @param string $domain
   *   The domain to be checked.
   *
   * @return bool
   *   Returns TRUE if the domain passes the check. FALSE otherwise.
   */
  public function checkDomain($domain);

  /**
   * Determine if connection should be refreshed.
   *
   * @param string $domain
   *   The domain to be checked.
   *
   * @return array
   *   Returns the list of options that domain_301_redirect provides.
   */
  public function checkRedirectLoop($domain);

  /**
   * Generate a url to the redirect check controller endpoint.
   *
   * @return \Drupal\Core\Url
   *   The redirect check url.
   */
  public function getRedirectCheckUrl($domain);

  /**
   * Generate a token based on redirect_last_checked.
   *
   * @return string
   *   Returns the token.
   */
  public function getRedirectCheckToken();

}

Members

Namesort descending Modifiers Type Description Overrides
Domain301RedirectManagerInterface::checkDomain public function Checks if a domain actually points to this site. 1
Domain301RedirectManagerInterface::checkRedirectLoop public function Determine if connection should be refreshed. 1
Domain301RedirectManagerInterface::getRedirectCheckToken public function Generate a token based on redirect_last_checked. 1
Domain301RedirectManagerInterface::getRedirectCheckUrl public function Generate a url to the redirect check controller endpoint. 1