imports:
    - { resource: config.yml }

easy_admin:
    design:
        menu:
            - { label: 'Custom homepage', url: 'https://example.com', default: true }
            - Category
            - User
            - Purchase

    entities:
        Category:
            class: AppTestBundle\Entity\FunctionalTests\Category
            disabled_actions: ['list']
        Purchase:
            class: AppTestBundle\Entity\FunctionalTests\Purchase
            list:
                fields: ['id', 'buyer']
                sort: ['buyer.id', 'ASC']
        User:
            class: AppTestBundle\Entity\FunctionalTests\User
            # the 'show' action is disabled so the 'buyer' field is not linked
            # in the 'list' view of the 'Purchase' entity
            disabled_actions: ['show']
        Product:
            class: AppTestBundle\Entity\FunctionalTests\Product
            # the 'edit' action is disabled to test if the 'enabled' property is
            # displayed as a boolean label instead of a toggle
            disabled_actions: ['edit']
