Skip to content
Snippets Groups Projects
Unverified Commit 72a817b6 authored by homotechsual's avatar homotechsual Committed by GitHub
Browse files

Merge pull request #691 from seamuslee001/extension_apiv4_civix_module

Update civix documentation to mention what API file is generated when…
parents 45387a16 7eece84c
Branches
No related tags found
No related merge requests found
......@@ -165,6 +165,8 @@ If you want your extension to store data in the database, then you will need to
Now your entity should be ready to use. Try it out with `cv api MyEntity.create` and `cv api MyEntity.get`. Then [add some tests](#generate-test).
By default when you generate an entity you will be generating an APIv4 entity. To generate an APIv3 (or both) interface you need to specify `--api-version 3,4` or just `--api-version 3`
!!! note "Troubleshooting"
If you've generated an entity within an extension that you created with `civix` v18.01.0 or earlier, then you'll need to add this hook to your `myextension.php` file (changing `myextension` to your extension's short name).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment