class LocalRedirectResponse

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
  2. 8.9.x core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
  3. 10 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse

Provides a redirect response which cannot redirect to an external URL.

Hierarchy

Expanded class hierarchy of LocalRedirectResponse

4 files declare their use of LocalRedirectResponse
BigPipe.php in core/modules/big_pipe/src/Render/BigPipe.php
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\Routing
View 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.