public function AgreementForm::getFormId in Agreement 8.2
Same name and namespace in other branches
- 3.0.x src/Form/AgreementForm.php \Drupal\agreement\Form\AgreementForm::getFormId()
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
- src/
Form/ AgreementForm.php, line 99
Class
- AgreementForm
- Agreement page form.
Namespace
Drupal\agreement\FormCode
public function getFormId() {
/* @var \Drupal\agreement\Entity\Agreement $agreement */
$agreement = $this->routeMatch
->getParameter('agreement');
return 'agreement_' . $agreement
->id() . '_form';
}