public function SimpleForm::getFormId in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/form_api_example/src/Form/SimpleForm.php \Drupal\form_api_example\Form\SimpleForm::getFormId()
Getter method for Form ID.
The form ID is used in implementations of hook_form_alter() to allow other modules to alter the render array built by this form controller. It must be unique site wide. It normally starts with the providing module's name.
Return value
string The unique ID of the form defined by this class.
Overrides FormInterface::getFormId
File
- form_api_example/
src/ Form/ SimpleForm.php, line 72
Class
- SimpleForm
- Implements the SimpleForm form controller.
Namespace
Drupal\form_api_example\FormCode
public function getFormId() {
return 'form_api_example_simple_form';
}