You are here

protected function EdgeEntityDeleteForm::verificationCode in Apigee Edge 8

Returns the verification code that the user should provide to confirm.

Return value

string The verification code.

2 calls to EdgeEntityDeleteForm::verificationCode()
EdgeEntityDeleteForm::buildForm in src/Entity/Form/EdgeEntityDeleteForm.php
Form constructor.
EdgeEntityDeleteForm::validateVerificationCode in src/Entity/Form/EdgeEntityDeleteForm.php
Element validate callback for the verification code form element.
1 method overrides EdgeEntityDeleteForm::verificationCode()
AppDeleteForm::verificationCode in src/Entity/Form/AppDeleteForm.php
Returns the verification code that the user should provide to confirm.

File

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

Class

EdgeEntityDeleteForm
Default entity delete form implementation for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Form

Code

protected function verificationCode() {

  // By default this it the entity's default entity id.
  return $this
    ->getEntity()
    ->id();
}