Display custom form mode in twig with drupal_entity_form I am using the form_mode_manager module for creating new form modes.
I have currently a new edit form mode which is called applicant, but whenever I add the drupal_entity_form function in my twig template, it says:
The &quot;node&quot; entity type did not specify a &quot;applicant&quot; form class.
Does anyone know how to resolve this?
You need to create a custom module
Let say you call it module_name
In your module_name.module file you'll have to use the hook_entity_type_build()
/**
 * Implements hook_entity_type_build().
 */
function module_name_entity_type_build(array &amp;$entity_types) {
  $entity_types['node']-&gt;setFormClass('applicant', 'Drupal\node\NodeForm');
}

Then enable your module_name module and flush the cache.