class LocalRedirectResponse

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
  2. 10 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php \Drupal\Core\Routing\LocalRedirectResponse
  3. 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

Expanded class hierarchy of LocalRedirectResponse

2 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

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.