eca_form: Impossible or hard to identify an inline entity form

Issue information

From user: mxh

Related to !327 (merged)

Contribution record

Fork management

Problem/Motivation

The Inline Entity Form module enables to embed entity forms into entity forms. ECA Form events can currently also be applied to such inline entity forms.

However, it's currently hard (or even impossible?) to distinguish within an ECA process, whether the form is an inline entity form. That may lead to the situation, that a user may want to display a form element in the "main" form, but not in the inline entity form - but since it cannot distinguished, the form element will also be displayed in the inline entity form.

It's hard to identify an inline entity form, because it neither provides its own form ID nor does it provide its own form operation.

We need a concept for an easy distinguish between "main" entity forms and inline entity forms.

Steps to reproduce

Proposed resolution

I'm not sure yet. We could add an option to any form event, that allows to enable the event for inline entity forms. Not sure though whether that's the right approach. Suggestions welcome.

Remaining tasks

User interface changes

API changes

Data model changes

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information