Description
This issue is automatically created based on existing pull request: #26401: Add Event Prefix And Object To The Catalog Product Option Value Collection
Preconditions (*)
Magento 2.4-develop
Fixed Issues (if relevant)
n/a
Steps to reproduce: (*)
- Try to customize the collection loading of \Magento\Catalog\Model\ResourceModel\Product\Option\Value\Collection.
- Currently, one can only use the generic events like
core_collection_abstract_load_before
. - With this pull request, one can also use specific events like
catalog_product_option_value_collection_load_before
.
Actual Result:
✖️ here is no dispatch specially event for loading Magento\Catalog\Model\ResourceModel\Product\Option\Value\Collection.
Only general core_collection_abstract_load_before
was dispatched.
Expected Result:
✔️ here is dispatch general core_collection_abstract_load_before
and catalog_product_option_value_collection
event for load before(+ _load_before
) and after (+ _load_after
) for Magento\Catalog\Model\ResourceModel\Product\Option\Value\Collection.
Questions or comments
Would it make sense to check more relevant Magento core models / collections and add event prefixes / objects there as well?
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status