LocalRedirectResponse.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php
  2. 10 core/lib/Drupal/Core/Routing/LocalRedirectResponse.php
  3. 11.x core/lib/Drupal/Core/Routing/LocalRedirectResponse.php

Namespace

Drupal\Core\Routing

File

core/lib/Drupal/Core/Routing/LocalRedirectResponse.php

View source
<?php

namespace Drupal\Core\Routing;


/**
 * Provides a redirect response which cannot redirect to an external URL.
 */
class LocalRedirectResponse extends CacheableSecuredRedirectResponse {
    use LocalAwareRedirectResponseTrait {
        LocalAwareRedirectResponseTrait::isLocal as isSafe;
    }

}

Classes

Title Deprecated Summary
LocalRedirectResponse Provides a redirect response which cannot redirect to an external URL.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.