You are here

public function Delete::getCancelText in SimpleAds 8

Same name in this branch
  1. 8 src/Form/Groups/Delete.php \Drupal\simpleads\Form\Groups\Delete::getCancelText()
  2. 8 src/Form/Ads/Delete.php \Drupal\simpleads\Form\Ads\Delete::getCancelText()
  3. 8 src/Form/Campaigns/Delete.php \Drupal\simpleads\Form\Campaigns\Delete::getCancelText()

Returns a caption for the link which cancels the action.

Return value

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

Overrides ConfirmFormBase::getCancelText

File

src/Form/Groups/Delete.php, line 55

Class

Delete
Delete advertisement form.

Namespace

Drupal\simpleads\Form\Groups

Code

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