You are here

protected function TeamAppEditForm::getRedirectUrl in Apigee Edge 8

Returns the URL where the user should be redirected after form submission.

Return value

\Drupal\Core\Url The redirect URL.

Overrides AppForm::getRedirectUrl

File

modules/apigee_edge_teams/src/Entity/Form/TeamAppEditForm.php, line 109

Class

TeamAppEditForm
General form handler for the team app edit.

Namespace

Drupal\apigee_edge_teams\Entity\Form

Code

protected function getRedirectUrl() : Url {
  $entity = $this
    ->getEntity();
  if ($entity
    ->hasLinkTemplate('collection-by-team')) {
    return $entity
      ->toUrl('collection-by-team');
  }
  return parent::getRedirectUrl();
}