public EntityForm::getFormId()
Returns a unique string identifying the form.
Return value
string The unique string identifying the form.
Overrides FormInterface::getFormId
File
- core/lib/Drupal/Core/Entity/EntityForm.php, line 87
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 6 7 8 9 10 | public function getFormId() { $form_id = $this ->entity->getEntityTypeId(); if ( $this ->entity->getEntityType()->hasKey( 'bundle' )) { $form_id .= '_' . $this ->entity->bundle(); } if ( $this ->operation != 'default' ) { $form_id = $form_id . '_' . $this ->operation; } return $form_id . '_form' ; } |
Please login to continue.