function RedirectDestination::getAsArray

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/RedirectDestination.php \Drupal\Core\Routing\RedirectDestination::getAsArray()
  2. 10 core/lib/Drupal/Core/Routing/RedirectDestination.php \Drupal\Core\Routing\RedirectDestination::getAsArray()
  3. 11.x core/lib/Drupal/Core/Routing/RedirectDestination.php \Drupal\Core\Routing\RedirectDestination::getAsArray()

Overrides RedirectDestinationInterface::getAsArray

File

core/lib/Drupal/Core/Routing/RedirectDestination.php, line 50

Class

RedirectDestination
Provides helpers for redirect destinations.

Namespace

Drupal\Core\Routing

Code

public function getAsArray() {
    return [
        'destination' => $this->get(),
    ];
}

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