You are here

public function GroupContentTypeDeleteForm::getQuestion in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Form/GroupContentTypeDeleteForm.php \Drupal\group\Entity\Form\GroupContentTypeDeleteForm::getQuestion()

Overrides EntityDeleteFormTrait::getQuestion

1 call to GroupContentTypeDeleteForm::getQuestion()
GroupContentTypeDeleteForm::buildForm in src/Entity/Form/GroupContentTypeDeleteForm.php
Form constructor.

File

src/Entity/Form/GroupContentTypeDeleteForm.php, line 22

Class

GroupContentTypeDeleteForm
Provides a form for group content type deletion.

Namespace

Drupal\group\Entity\Form

Code

public function getQuestion() {

  /** @var \Drupal\group\Entity\GroupContentTypeInterface $group_content_type */
  $group_content_type = $this
    ->getEntity();
  return $this
    ->t('Are you sure you want to uninstall the %plugin plugin?', [
    '%plugin' => $group_content_type
      ->getRelationPlugin()
      ->getLabel(),
  ]);
}