You are here

public function CustomPublishingOptionDeleteForm::getConfirmText in Custom Publishing Options 8

Returns a caption for the button that confirms the action.

Return value

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

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/CustomPublishingOptionDeleteForm.php, line 31

Class

CustomPublishingOptionDeleteForm
Builds the form to delete Custom publishing option entities.

Namespace

Drupal\custom_pub\Form

Code

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