Deprecated Code Report

Created on 28 January 2021, almost 4 years ago
Updated 27 June 2023, over 1 year ago

The small issue was found during automated code check

Rector v0.7.29
Config file: rector.yml

183/183 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

1 file with changes
===================

1) modules/rabbit_hole/rabbit_hole.api.php

---------- begin diff ----------
--- Original
+++ New
@@ -1,5 +1,6 @@
<?php

+use Drupal\Core\Entity\ContentEntityInterface;
/**
* @file
* Hooks provided by the Rabbit Hole module.
@@ -17,7 +18,7 @@
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity to apply rabbit hole behavior on.
*/
-function hook_rabbit_hole_values_alter(array &$values, \Drupal\Core\Entity\ContentEntityInterface $entity) {
+function hook_rabbit_hole_values_alter(array &$values, ContentEntityInterface $entity) {
// Disable bypassing access for everyone (including administrators).
$values['bypass_access'] = FALSE;

@@ -35,7 +36,7 @@
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The entity to apply rabbit hole behavior on.
*/
-function hook_rabbit_hole_response_alter(Response &$response, \Drupal\Core\Entity\ContentEntityInterface $entity) {
+function hook_rabbit_hole_response_alter(Response &$response, ContentEntityInterface $entity) {
if ($response instanceof RedirectResponse) {
$response = new TrustedRedirectResponse('https://example.com');
}
----------- end diff -----------

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇧🇾Belarus Kate.Yemelyanenka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024