Subscriber\CategoryPageSubscriber |
Listens to NavigationPageLoadedEvent. Loads the parent categories (up to 10) only when inheritance is enabled on the category. Loads the media of the images as soon as a message, image or inheritance is set |
Service\EmptyCategoryMessageService |
Resolves the message: own message, otherwise inheritance upwards, otherwise empty. The search covers at most 10 levels including the category itself, so at most 9 parent categories are reached. Sanitizes CSS classes and select values |
Service\EmptyCategoryMessage |
Immutable value object with message, image URL, CSS classes, size and alignments |
Twig\EmptyCategoryExtension |
Registers the Twig function mmd_empty_category_message |
views/storefront/component/product/listing.html.twig |
Overrides the block element_product_listing_col_empty |
app/storefront/src/scss/base.scss |
Styles for the plugin classes |
MmdEmptyCategory |
Creates the custom field set, completes it on update and removes it on uninstall |