You are here

public function PhotosImageDeleteForm::getCancelText in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Form/PhotosImageDeleteForm.php \Drupal\photos\Form\PhotosImageDeleteForm::getCancelText()
  2. 8.4 src/Form/PhotosImageDeleteForm.php \Drupal\photos\Form\PhotosImageDeleteForm::getCancelText()

Returns a caption for the link which cancels the action.

Return value

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

Overrides ContentEntityConfirmFormBase::getCancelText

File

src/Form/PhotosImageDeleteForm.php, line 43

Class

PhotosImageDeleteForm
Defines a confirmation form for deleting images.

Namespace

Drupal\photos\Form

Code

public function getCancelText() {
  return $this
    ->t('Nevermind');
}