public function PrivateMessageForm::setFormId in Private Message 8
Same name and namespace in other branches
- 8.2 src/Form/PrivateMessageForm.php \Drupal\private_message\Form\PrivateMessageForm::setFormId()
Set the ID of the form.
This allows for the form to be used multiple times on a page.
Parameters
mixed $id: An ID required to be unique each time the form is called on a page.
File
- src/
Form/ PrivateMessageForm.php, line 159
Class
- PrivateMessageForm
- Defines the private message form.
Namespace
Drupal\private_message\FormCode
public function setFormId($id) {
$this->formId = Html::escape($id);
}