You are here

public function LayoutBuilderStyleDeleteForm::getConfirmText in Layout Builder Styles 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/LayoutBuilderStyleDeleteForm.php, line 31

Class

LayoutBuilderStyleDeleteForm
Builds the form to delete Layout Builder Style entities.

Namespace

Drupal\layout_builder_styles\Form

Code

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