I need to output the form id of a webform entity. I load a chunk of enabled webforms directly from the database by using
Afterwards I have to output the form_id's of the webform entities.
How to achieve this? I cannot see any "form_id" stored in the returned entity object.
I can use the following script to receive a static version of the form id:
$target_form_id = str_replace('email_confirm_redirect_2_', '', $entity->getSubmissionForm()['#form_id']);
Still not really professional