public function FormBuilderInterface::getFormId in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormBuilderInterface.php \Drupal\Core\Form\FormBuilderInterface::getFormId()
- 10 core/lib/Drupal/Core/Form/FormBuilderInterface.php \Drupal\Core\Form\FormBuilderInterface::getFormId()
Determines the ID of a form.
Parameters
\Drupal\Core\Form\FormInterface|string $form_arg: The value is identical to that of self::getForm()'s $form_arg argument.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
string The unique string identifying the desired form.
1 method overrides FormBuilderInterface::getFormId()
- FormBuilder::getFormId in core/
lib/ Drupal/ Core/ Form/ FormBuilder.php - Determines the ID of a form.
File
- core/
lib/ Drupal/ Core/ Form/ FormBuilderInterface.php, line 36
Class
- FormBuilderInterface
- Provides an interface for form building and processing.
Namespace
Drupal\Core\FormCode
public function getFormId($form_arg, FormStateInterface &$form_state);