You are here

public function ResolverRelationshipDelete::getQuestion in Chaos Tool Suite (ctools) 8.3

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

1 call to ResolverRelationshipDelete::getQuestion()
ResolverRelationshipDelete::buildForm in src/Form/ResolverRelationshipDelete.php
Form constructor.

File

src/Form/ResolverRelationshipDelete.php, line 68

Class

ResolverRelationshipDelete

Namespace

Drupal\ctools\Form

Code

public function getQuestion($id = NULL, $cached_values = []) {
  $context = $this
    ->getContexts($cached_values)[$id];
  return $this
    ->t('Are you sure you want to delete the @label relationship?', [
    '@label' => $context
      ->getContextDefinition()
      ->getLabel(),
  ]);
}