I created a new entity add form. I added it to the assets menu. But I couldn’t get the action links in the picture (green button). How do those buttons come to my page? the picture is taken from a sample entity form.
farmOS 1.x gets information about available entity types from implementations of
hook_farm_ui_entities(): farmOS/farm_ui.api.php at 5a61d5e07216b5553729daf68ac6c9421f1a01c5 · farmOS/farmOS · GitHub
Here is where the “Animal” asset type is described, for example: farmOS/farm_livestock.module at 5a61d5e07216b5553729daf68ac6c9421f1a01c5 · farmOS/farmOS · GitHub
So in your custom module, you just need a function called
mymodulename with the name of your module) that describes what asset and log types it provides.
Note that this is no longer necessary in farmOS 2.x - these things are determined automatically.