You are here

public function QueueExampleForm::getFormId in Examples for Developers 8

Returns a unique string identifying the form.

The returned ID should be a unique string that can be a valid PHP function name, since it's used in hook implementation names such as hook_form_FORM_ID_alter().

Return value

string The unique string identifying the form.

Overrides FormInterface::getFormId

File

queue_example/src/Forms/QueueExampleForm.php, line 80

Class

QueueExampleForm
Form with examples on how to use queue.

Namespace

Drupal\queue_example\Forms

Code

public function getFormId() {

  // Return a string that is the unique ID of our form. Best practice here is
  // to namespace the form based on your module's name.
  return 'queue_example';
}