function ResolverRelationshipDelete::getQuestion

Same name in other branches
  1. 8.x-3.x src/Form/ResolverRelationshipDelete.php \Drupal\ctools\Form\ResolverRelationshipDelete::getQuestion()

Overrides ConfirmFormInterface::getQuestion

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

File

src/Form/ResolverRelationshipDelete.php, line 82

Class

ResolverRelationshipDelete
Resolver Relatinoship Delete Form.

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(),
    ]);
}