Wrapper methods for the Redirect Destination.
This utility trait should only be used in application-level code, such as classes that would implement ContainerInjectionInterface. Services registered in the Container should not use this trait but inject the appropriate service directly for easier testing.
Name | Modifiers | Type | Description |
---|---|---|---|
RedirectDestinationTrait::$redirectDestination | protected | property | The redirect destination service. |
RedirectDestinationTrait::getDestinationArray | protected | function | Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. |
RedirectDestinationTrait::getRedirectDestination | protected | function | Returns the redirect destination service. |
RedirectDestinationTrait::setRedirectDestination | public | function | Sets the redirect destination service. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RedirectDestinationTrait.php/trait/RedirectDestinationTrait/8.1.x