You are here

protected function EdgeEntityDeleteForm::verificationCodeErrorMessage in Apigee Edge 8

The error message that the user should see when verification fails.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The error message to be displayed to the user.

1 call to EdgeEntityDeleteForm::verificationCodeErrorMessage()
EdgeEntityDeleteForm::validateVerificationCode in src/Entity/Form/EdgeEntityDeleteForm.php
Element validate callback for the verification code form element.
2 methods override EdgeEntityDeleteForm::verificationCodeErrorMessage()
AppDeleteForm::verificationCodeErrorMessage in src/Entity/Form/AppDeleteForm.php
The error message that the user should see when verification fails.
TeamDeleteForm::verificationCodeErrorMessage in modules/apigee_edge_teams/src/Entity/Form/TeamDeleteForm.php
The error message that the user should see when verification fails.

File

src/Entity/Form/EdgeEntityDeleteForm.php, line 107

Class

EdgeEntityDeleteForm
Default entity delete form implementation for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Form

Code

protected function verificationCodeErrorMessage() {
  return $this
    ->t('The provided text does not match the id of @entity that you are attempting to delete.', [
    '@entity' => mb_strtolower($this->entityTypeManager
      ->getDefinition($this
      ->getEntity()
      ->getEntityTypeId())
      ->getSingularLabel()),
  ]);
}