public function SqlRedirectNotFoundStorage::resolveLogRequest in Redirect 8
Marks a 404 request log as resolved.
Parameters
string $path: The path of the current request.
string $langcode: The ID of the language code.
Overrides RedirectNotFoundStorageInterface::resolveLogRequest
File
- modules/
redirect_404/ src/ SqlRedirectNotFoundStorage.php, line 83
Class
- SqlRedirectNotFoundStorage
- Provides an SQL implementation for redirect not found storage.
Namespace
Drupal\redirect_404Code
public function resolveLogRequest($path, $langcode) {
$this->database
->update('redirect_404')
->fields([
'resolved' => 1,
])
->condition('path', $path)
->condition('langcode', $langcode)
->execute();
}