Entity forms in blocks

Component ID

2494943

Component name

Entity forms in blocks

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

830

Component created

Component changed

Component body

See Form Block or Entity form block

About the module

This module intends to expose all form entities into blocks like Form Block. The difference is that this modules leverages the entity abstraction layer of Drupal 8 to be able to create a block for any entity type and bundle.

Installation :

Enable the module as usual. There is no config page : you'll find new Form block available in the block configuration page.

Does it work ?/h3>

The module works just fine for content entities that do not depend on parameters (therefore comment form does not work, depending on a node, personnal contact form, user edit form...). It works fine for content types, register form, ECK, site contact forms...

There is an attempt to make it work with configuration entity and it is the same (works for brand new creation).

This is the reason why this module is still in dev.

Additional notes and thoughts

- This module is (for now) deadly simple (less that two hundred lines of code including comments).
- The module checks the block access and will not show if the current user has not the permission to create the related entity.
- Interesting features that does not exists for now with the other modules : ability to choose the form mode as Drupal 8 allows to (in Drupal 8, you can create additional form modes).
- Use configuration more than pre-creating all the blocks as Drupal 8 allows to add multiple instance of the same block.

Help is welcome !