I'm a little confused.. does Entity operations help me with creating admin pages to administer bundles and fields?

E.g.
admin/structure/myentity/manage/%myentity_type/fields

The example module does not really tell.

Comments

joachim’s picture

Entity API provides an admin UI. It's mostly aimed at entity types that behave as bundles for other entities (eg, profile2 types), so for content-ish entities it's not idea.

Entity Operations provides a UI controller class that extends the Entity API one, which adds a few extras.

If you are defining your bundles in code, so not using a bundle entity type, and you want a UI to hang Field UI's pages off, then you can use https://drupal.org/project/entity_bundle_admin

donquixote’s picture

Thanks (I'm on IRC btw)

The entity type I want to create ("nestedbox") should have a CRUD UI for bundles, and a manage fields form for each bundle.
Similar to bean, field_collection, etc.
EDIT: field_collection does NOT have user-created bundles. Instead, there is one bundle per field.
So, bean is a better example. (and node, and taxonomy_term, etc)

i had a look at https://drupal.org/project/model, which introduces "model_type" as a second entity type next to "model". So, each bundle is an entity.
This "model" module defines custom page callbacks for the add bundle etc stuff, but it does not use entity operations. I thought, maybe I can use hook_entity_operation_info() to define an "add" operation to add bundles..

joachim’s picture

I haven't used EO for bundle entities yet. It should work though.

You could use the generic add and edit controllers, since your bundle entities will have a 'title' schema field. That saves you having to make a form for them.

You can use Entity API's admin UI system to manage them too.

(Can't come on IRC right now, sorry, but hopefully catch you another time.)