You are here

interface RedirectNotFoundStorageInterface in Redirect 8

Interface for redirect 404 services.

Hierarchy

Expanded class hierarchy of RedirectNotFoundStorageInterface

All classes that implement RedirectNotFoundStorageInterface

2 files declare their use of RedirectNotFoundStorageInterface
Fix404IgnoreController.php in modules/redirect_404/src/Controller/Fix404IgnoreController.php
Redirect404Subscriber.php in modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php

File

modules/redirect_404/src/RedirectNotFoundStorageInterface.php, line 8

Namespace

Drupal\redirect_404
View source
interface RedirectNotFoundStorageInterface {

  /**
   * Merges a 404 request log in the database.
   *
   * @param string $path
   *   The path of the current request.
   * @param string $langcode
   *   The ID of the language code.
   */
  public function logRequest($path, $langcode);

  /**
   * Marks a 404 request log as resolved.
   *
   * @param string $path
   *   The path of the current request.
   * @param string $langcode
   *   The ID of the language code.
   */
  public function resolveLogRequest($path, $langcode);

  /**
   * Returns the 404 request data.
   *
   * @param array $header
   *   An array containing arrays of the redirect_404 fields data.
   * @param string $search
   *   The search text. It is possible to have multiple '*' as a wildcard.
   *
   * @return array
   *   A list of objects with the properties:
   *   - path
   *   - count
   *   - timestamp
   *   - langcode
   *   - resolved
   */
  public function listRequests(array $header = [], $search = NULL);

  /**
   * Cleans the irrelevant 404 request logs.
   */
  public function purgeOldRequests();

  /**
   * Resets the daily counts of 404 request logs.
   */
  public function resetDailyCount();

}

Members

Namesort descending Modifiers Type Description Overrides
RedirectNotFoundStorageInterface::listRequests public function Returns the 404 request data. 1
RedirectNotFoundStorageInterface::logRequest public function Merges a 404 request log in the database. 1
RedirectNotFoundStorageInterface::purgeOldRequests public function Cleans the irrelevant 404 request logs. 1
RedirectNotFoundStorageInterface::resetDailyCount public function Resets the daily counts of 404 request logs. 1
RedirectNotFoundStorageInterface::resolveLogRequest public function Marks a 404 request log as resolved. 1