3 namespace Drupal\redirect_404;
6 * Interface for redirect 404 services.
8 interface RedirectNotFoundStorageInterface {
11 * Merges a 404 request log in the database.
14 * The path of the current request.
15 * @param string $langcode
16 * The ID of the language code.
18 public function logRequest($path, $langcode);
21 * Marks a 404 request log as resolved.
24 * The path of the current request.
25 * @param string $langcode
26 * The ID of the language code.
28 public function resolveLogRequest($path, $langcode);
31 * Returns the 404 request data.
33 * @param array $header
34 * An array containing arrays of the redirect_404 fields data.
35 * @param string $search
36 * The search text. It is possible to have multiple '*' as a wildcard.
39 * A list of objects with the properties:
46 public function listRequests(array $header = [], $search = NULL);
49 * Cleans the irrelevant 404 request logs.
51 public function purgeOldRequests();