public function GroupContentTypeDeleteForm::getDescription in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Form/GroupContentTypeDeleteForm.php \Drupal\group\Entity\Form\GroupContentTypeDeleteForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides EntityConfirmFormBase::getDescription
File
- src/
Entity/ Form/ GroupContentTypeDeleteForm.php, line 40
Class
- GroupContentTypeDeleteForm
- Provides a form for group content type deletion.
Namespace
Drupal\group\Entity\FormCode
public function getDescription() {
/** @var \Drupal\group\Entity\GroupContentTypeInterface $group_content_type */
$group_content_type = $this
->getEntity();
$plugin = $group_content_type
->getRelationPlugin();
$replace = [
'%entity_type' => $this->entityTypeManager
->getDefinition($plugin
->getEntityTypeId())
->getLabel(),
'%group_type' => $group_content_type
->getGroupType()
->label(),
];
return $this
->t('You will no longer be able to add %entity_type entities to %group_type groups.', $replace);
}