protected function SocialPostEntityDeleteForm::getRedirectUrl in Social Post 3.x
Same name and namespace in other branches
- 8.2 src/Form/SocialPostEntityDeleteForm.php \Drupal\social_post\Form\SocialPostEntityDeleteForm::getRedirectUrl()
Returns the URL where the user should be redirected after deletion.
Return value
\Drupal\Core\Url The redirect URL.
Overrides EntityDeleteFormTrait::getRedirectUrl
1 call to SocialPostEntityDeleteForm::getRedirectUrl()
- SocialPostEntityDeleteForm::submitForm in src/
Form/ SocialPostEntityDeleteForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
File
- src/
Form/ SocialPostEntityDeleteForm.php, line 108
Class
- SocialPostEntityDeleteForm
- Provides a form for deleting Social Post user entities.
Namespace
Drupal\social_post\FormCode
protected function getRedirectUrl() {
// If a user id is passed as a parameter, the form is being invoked from a
// user edit form.
if ($this->uid) {
return Url::fromRoute('entity.user.edit_form', [
'user' => $this->uid,
]);
}
return Url::fromRoute('social_post_' . $this->provider . '.user.collection');
}