class LocalRedirectResponse
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
- 8.9.x core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
- 11.x core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
Provides a redirect response which cannot redirect to an external URL.
Hierarchy
- class \Drupal\Component\HttpFoundation\SecuredRedirectResponse extends \Symfony\Component\HttpFoundation\RedirectResponse
- class \Drupal\Core\Routing\CacheableSecuredRedirectResponse extends \Drupal\Component\HttpFoundation\SecuredRedirectResponse implements \Drupal\Core\Cache\CacheableResponseInterface uses \Drupal\Core\Cache\CacheableResponseTrait
- class \Drupal\Core\Routing\LocalRedirectResponse extends \Drupal\Core\Routing\CacheableSecuredRedirectResponse uses \Drupal\Core\Routing\LocalAwareRedirectResponseTrait
- class \Drupal\Core\Routing\CacheableSecuredRedirectResponse extends \Drupal\Component\HttpFoundation\SecuredRedirectResponse implements \Drupal\Core\Cache\CacheableResponseInterface uses \Drupal\Core\Cache\CacheableResponseTrait
Expanded class hierarchy of LocalRedirectResponse
3 files declare their use of LocalRedirectResponse
- BigPipeController.php in core/
modules/ big_pipe/ src/ Controller/ BigPipeController.php - RedirectResponseSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ RedirectResponseSubscriber.php - SystemTestController.php in core/
modules/ system/ tests/ modules/ system_test/ src/ Controller/ SystemTestController.php
File
-
core/
lib/ Drupal/ Core/ Routing/ LocalRedirectResponse.php, line 8
Namespace
Drupal\Core\RoutingView source
class LocalRedirectResponse extends CacheableSecuredRedirectResponse {
use LocalAwareRedirectResponseTrait {
LocalAwareRedirectResponseTrait::isLocal as isSafe;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.