You are here

public function MapLayerDeleteForm::getConfirmText in Openlayers 8.4

Returns a caption for the button that confirms the action.

Return value

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

Overrides ConfirmFormBase::getConfirmText

File

src/Form/MapLayerDeleteForm.php, line 42

Class

MapLayerDeleteForm
Form for deleting a layer from a map.

Namespace

Drupal\openlayers\Form

Code

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