You are here

public function DeveloperAppListBuilderForDeveloper::appsPage in Apigee Edge 8

Redirects users to their Apps page.

This controller assumes that it is only invoked for authenticated users. This is enforced for the 'apigee_edge.user.apps' route with the '_user_is_logged_in' requirement.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse Returns a redirect to the Apps of the currently logged in user.

1 string reference to 'DeveloperAppListBuilderForDeveloper::appsPage'
apigee_edge.routing.yml in ./apigee_edge.routing.yml
apigee_edge.routing.yml

File

src/Entity/ListBuilder/DeveloperAppListBuilderForDeveloper.php, line 192

Class

DeveloperAppListBuilderForDeveloper
Lists developer apps of a developer on the UI.

Namespace

Drupal\apigee_edge\Entity\ListBuilder

Code

public function appsPage() : RedirectResponse {
  $options['absolute'] = TRUE;
  $url = Url::fromRoute('entity.developer_app.collection_by_developer', [
    'user' => $this->currentUser
      ->id(),
  ], $options);
  return new RedirectResponse($url
    ->toString(), 302);
}