adeoweb/custom-entity-bundle
Symfony bundle for Akeneo PIM that streamlines creating and managing reference data (custom entities) and related UI views. Install via Composer, register routes and bundle, and optionally add a quick export job for CSV reference data.
The configuration for the CRUD actions of your custom entities must be in a file named 'config/custom_entities.yml', located in an activated bundle. To have a full working CRUD for an entity, the following configuration could be used:
# Resources/config/custom_entities.yml
custom_entities:
color:
entity_class: Acme\Bundle\CustomBundle\Entity\Color
options:
acl_prefix: acme_enrich_color
actions:
edit:
form_type: acme_enrich_color
create:
form_type: acme_enrich_color
mass_edit:
form_type: acme_enrich_mass_edit_color
quick_export:
service: pim_custom_entity.action.quick_export
The root level of the file contains the configuration for all your entities, indexed by alias. The alias will be used in the CRUD URLs, and later, for the datagrid configuration.
For each entity, the following options are available:
true if the definition is only meant to be extendedThe following options can be used:
The following options are common for all actions:
acl_prefix option is provided, and no acl is provided for the action, the acl - option will be set to <acl_prefix><acl_separator><acl_suffix>The bundle will automatically add your configured actions to your oro datagrids if your datagrid extends the custom_entity model.
An example for a translatable option entity is available in the
example bundle.
How can I help you explore Laravel packages today?