I foundThe Paragraphs module and very excited. But this module seems great, but it does not provide any API (i lookI looked at the source), so i. So I think that will be enough to use Drupal API and/or Entity API.
Short intro. Module provideAbout this module: it provides a new entity type 'Paragraph' and field with same name. User can create via UI 'Paragraph types' (bundles) with fields and view display settings like node entity.
So myMy question is. Whats: What's the right way to define bundle type for this entity type with custom fields in a custom module?
I think iI must create fields first, using field_create_field() and field_create_instance() in hook_enable() but whats. But what's next?
I must create bundle for paragraphs entity and attach created field, but iI don't know how and googleany searches always sendssend me onto documentation about how programmatically create entity itself.