public function GroupContentTypeDeleteForm::getCancelUrl in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Form/GroupContentTypeDeleteForm.php \Drupal\group\Entity\Form\GroupContentTypeDeleteForm::getCancelUrl()
Overrides EntityDeleteFormTrait::getCancelUrl
File
- src/
Entity/ Form/ GroupContentTypeDeleteForm.php, line 31
Class
- GroupContentTypeDeleteForm
- Provides a form for group content type deletion.
Namespace
Drupal\group\Entity\FormCode
public function getCancelUrl() {
/** @var \Drupal\group\Entity\GroupContentTypeInterface $group_content_type */
$group_content_type = $this
->getEntity();
return Url::fromRoute('entity.group_type.content_plugins', [
'group_type' => $group_content_type
->getGroupTypeId(),
]);
}