PHPackages                             wieni/wmcustom\_entity\_form - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wieni/wmcustom\_entity\_form

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

wieni/wmcustom\_entity\_form
============================

Use custom entity forms per bundle

1.5.0(11mo ago)018.7k↓41%3[4 issues](https://github.com/wieni/wmcustom_entity_form/issues)MITPHPPHP ^7.1 || ^8.0

Since Sep 26Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/wieni/wmcustom_entity_form)[ Packagist](https://packagist.org/packages/wieni/wmcustom_entity_form)[ RSS](/packages/wieni-wmcustom-entity-form/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (9)Used By (0)

[ ![Wieni logo](https://camo.githubusercontent.com/f5e0229c8d3c9a2b33f6393638bae3279ac1a578f5074717af4212ac339cf39b/68747470733a2f2f7777772e7769656e692e62652f7468656d65732f637573746f6d2f6472757061636b2f6c6f676f2e737667 "Wieni")](https://www.wieni.be)Drupal Custom Entity Form
=========================

[](#drupal-custom-entity-form)

> Use custom entity forms per bundle.

Installation
------------

[](#installation)

```
composer require wieni/wmcustom_entity_form
drush en wmcustom_entity_form

```

Why
---

[](#why)

Because you like to build forms tailored to your client's needs. But you also like to keep codebase clean.

Use
---

[](#use)

This plugin-based module will look for entity forms in the `Form/Entity` directory of your modules.

The classes have to implement the `@EntityForm` annotation. The `id` you give that annotation will be used to match the entity type and bundle.

Caveats
-------

[](#caveats)

This only works on forms created by the EntityFormBuilder. It won't kick in if your form is shown using inline entity form. In that case you'll still need to use `HOOK_inline_entity_form_entity_form_alter`

Example
-------

[](#example)

```
