public function UnflaggingForm::getQuestion in Flag 8.4
Returns the question to ask the user.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.
Overrides ConfirmFormInterface::getQuestion
File
- src/
Form/ UnflaggingForm.php, line 46
Class
- UnflaggingForm
- Provides the confirm form page for unflagging an entity.
Namespace
Drupal\flag\FormCode
public function getQuestion() {
$link_plugin = $this->flag
->getLinkTypePlugin();
return $link_plugin instanceof FormEntryInterface ? $link_plugin
->getUnflagQuestion() : $this
->t('Unflag this content');
}