You are here

public function EntityFlagActionForm::getConfirmText in farmOS 2.x

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

modules/core/flag/src/Form/EntityFlagActionForm.php, line 145

Class

EntityFlagActionForm
Provides an entity flag action form.

Namespace

Drupal\farm_flag\Form

Code

public function getConfirmText() {
  return $this
    ->t('Flag');
}