public function UpdateEncryptionProfileForm::getQuestion in Field Encryption 3.0.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
- src/
Form/ UpdateEncryptionProfileForm.php, line 80
Class
- UpdateEncryptionProfileForm
- Confirmation form for updating encryption on an entity.
Namespace
Drupal\field_encrypt\FormCode
public function getQuestion() {
$default_encryption_profile = $this->entityTypeManager
->getStorage('encryption_profile')
->load($this
->config('field_encrypt.settings')
->get('encryption_profile'));
return $this
->t('Are you sure you want to update the encryption profile from %from to %to for %entity_type_plural?', [
'%from' => $this->encryptionProfile
->label(),
'%to' => $default_encryption_profile
->label(),
'%entity_type_plural' => $this->entityType
->getPluralLabel(),
]);
}