You are here

public function RestExampleClientDelete::getQuestion in Examples for Developers 3.x

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

modules/rest_example/src/Form/RestExampleClientDelete.php, line 53

Class

RestExampleClientDelete
Delete a new node on a remote Drupal site.

Namespace

Drupal\rest_example\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure that you want to delete this content.');
}