Skip to content
Permalink
Browse files

Update lists of dispatched Magento events in all versions.

  • Loading branch information...
SchumacherFM committed Jul 1, 2018
1 parent aa348f1 commit 39d278ef2b3aa6fc0521674d51de4d98427516ea
@@ -13,13 +13,15 @@ url: magento2-list-of-all-dispatched-events

This ongoing updated post, lists all dispatched events in Magento 2.0. An event cheat sheet.

Current version: 2.0.16 / Sept 26, 2017
Current version: 2.0.18 / 1st July 2018

<!--more-->

For Magento 2.1 see [here](magento-2.1-list-of-all-dispatched-events/).

For Magento 2.2 see [here](magento-2.2-list-of-all-dispatched-events/).

<!--more-->
For Magento 2.3 see [here](magento-2.3-list-of-all-dispatched-events/).

This page lists three different groups of events occurring in: app and lib folders
and global Varien JavaScript Events. Clicking on the file name brings you directly
@@ -31,12 +33,12 @@ Please use your browsers search function!

# Events in the app folder

{{< mage2_code tag="2.0.16" url="static/magento2/2.0_events_app.csv" sep="|" >}}
{{< mage2_code tag="2.0.18" url="static/magento2/2.0_events_app.csv" sep="|" >}}

# Events in the lib folder

{{< mage2_code tag="2.0.16" url="static/magento2/2.0_events_lib.csv" sep="|" >}}
{{< mage2_code tag="2.0.18" url="static/magento2/2.0_events_lib.csv" sep="|" >}}

# JavaScript Varien Events

{{< mage2_code tag="2.0.16" url="static/magento2/2.0_events_js.csv" sep="|" >}}
{{< mage2_code tag="2.0.18" url="static/magento2/2.0_events_js.csv" sep="|" >}}
@@ -13,13 +13,15 @@ url: magento-2.1-list-of-all-dispatched-events/

This ongoing updated post, lists all dispatched events in Magento 2.1. An event cheat sheet.

Current version: 2.1.9 / Sept 26, 2017
Current version: 2.1.14 / 1st July 2018

<!--more-->

For Magento 2.0 see [here](magento2-list-of-all-dispatched-events/).

For Magento 2.2 see [here](magento-2.2-list-of-all-dispatched-events/).

<!--more-->
For Magento 2.3 see [here](magento-2.3-list-of-all-dispatched-events/).

This page lists three different groups of events occurring in: app and lib folders
and global Varien JavaScript Events. Clicking on the file name brings you directly
@@ -31,8 +33,8 @@ Please use your browsers search function!

# Events in the app folder

{{< mage2_code tag="2.1.9" url="static/magento2/2.1_events_app.csv" sep="|" >}}
{{< mage2_code tag="2.1.14" url="static/magento2/2.1_events_app.csv" sep="|" >}}

# Events in the lib folder

{{< mage2_code tag="2.1.9" url="static/magento2/2.1_events_lib.csv" sep="|" >}}
{{< mage2_code tag="2.1.14" url="static/magento2/2.1_events_lib.csv" sep="|" >}}
@@ -11,15 +11,18 @@ tags:
url: magento-2.2-list-of-all-dispatched-events/
---

This ongoing updated post, lists all dispatched events in Magento 2.2. An event cheat sheet.
This ongoing updated post, lists all dispatched events in Magento 2.2. An event
cheat sheet.

Current version: 2.2.0 / Sept 26, 2017
Current version: 2.2.5 / 29th June 2018

<!--more-->

For Magento 2.0 see [here](magento2-list-of-all-dispatched-events/).

For Magento 2.1 see [here](magento-2.1-list-of-all-dispatched-events/).

<!--more-->
For Magento 2.3 see [here](magento-2.3-list-of-all-dispatched-events/).

This page lists three different groups of events occurring in: app and lib folders
and global Varien JavaScript Events. Clicking on the file name brings you directly
@@ -31,8 +34,8 @@ Please use your browsers search function!

# Events in the app folder

{{< mage2_code tag="2.2.0" url="static/magento2/2.2_events_app.csv" sep="|" >}}
{{< mage2_code tag="2.2.5" url="static/magento2/2.2_events_app.csv" sep="|" >}}

# Events in the lib folder

{{< mage2_code tag="2.2.0" url="static/magento2/2.2_events_lib.csv" sep="|" >}}
{{< mage2_code tag="2.2.5" url="static/magento2/2.2_events_lib.csv" sep="|" >}}
@@ -13,16 +13,16 @@ url: magento-2.3-list-of-all-dispatched-events/

This ongoing updated post, lists all dispatched events in Magento 2.3-develop. An event cheat sheet.

Current version: 2.3-develop (df506928967e283ce7b976ab42216ee3cff958ab) / Sept 26, 2017
Current version: 2.3-develop (f947cadd508a5f5ff96dd327675896eec4853793) / 29th June 2018

<!--more-->

For Magento 2.0 see [here](magento2-list-of-all-dispatched-events/).

For Magento 2.1 see [here](magento-2.1-list-of-all-dispatched-events/).

For Magento 2.2 see [here](magento-2.2-list-of-all-dispatched-events/).

<!--more-->

This page lists three different groups of events occurring in: app and lib folders
and global Varien JavaScript Events. Clicking on the file name brings you directly
to the source code on GitHub including the correct line number.
@@ -33,12 +33,12 @@ Please use your browsers search function!

# Events in the app folder

{{< mage2_code tag="df506928967e283ce7b976ab42216ee3cff958ab" url="static/magento2/2.3_events_app.csv" sep="|" >}}
{{< mage2_code tag="f947cadd508a5f5ff96dd327675896eec4853793" url="static/magento2/2.3_events_app.csv" sep="|" >}}

# Events in the lib folder

{{< mage2_code tag="df506928967e283ce7b976ab42216ee3cff958ab" url="static/magento2/2.3_events_lib.csv" sep="|" >}}
{{< mage2_code tag="f947cadd508a5f5ff96dd327675896eec4853793" url="static/magento2/2.3_events_lib.csv" sep="|" >}}

# JavaScript Varien Events

{{< mage2_code tag="df506928967e283ce7b976ab42216ee3cff958ab" url="static/magento2/2.3_events_js.csv" sep="|" >}}
{{< mage2_code tag="f947cadd508a5f5ff96dd327675896eec4853793" url="static/magento2/2.3_events_js.csv" sep="|" >}}
@@ -57,7 +57,7 @@
"app/code/Magento/Catalog/Block/Adminhtml/Category/Tree.php"|"446"|"adminhtml_catalog_category_tree_can_add_sub_category"|"$this->_eventManager->dispatch(
'adminhtml_catalog_category_tree_can_add_sub_category',
['category' => $this->getCategory(), 'options' => $options, 'store' => $this->getStore()->getId()]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Advanced.php"|"239"|"product_attribute_form_build"|"$this->_eventManager->dispatch('product_attribute_form_build', ['form' => $form]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Advanced.php"|"248"|"product_attribute_form_build"|"$this->_eventManager->dispatch('product_attribute_form_build', ['form' => $form]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Front.php"|"111"|"product_attribute_form_build_front_tab"|"$this->_eventManager->dispatch('product_attribute_form_build_front_tab', ['form' => $form]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Front.php"|"184"|"adminhtml_catalog_product_attribute_edit_frontend_prepare_form"|"$this->_eventManager->dispatch(
'adminhtml_catalog_product_attribute_edit_frontend_prepare_form',
@@ -67,7 +67,7 @@
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Grid.php"|"108"|"product_attribute_grid_build"|"$this->_eventManager->dispatch('product_attribute_grid_build', ['grid' => $this]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/NewAttribute/Product/Attributes.php"|"52"|"adminhtml_catalog_product_edit_prepare_form"|"$this->_eventManager->dispatch('adminhtml_catalog_product_edit_prepare_form', ['form' => $form]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/NewAttribute/Product/Attributes.php"|"71"|"adminhtml_catalog_product_edit_element_types"|"$this->_eventManager->dispatch('adminhtml_catalog_product_edit_element_types', ['response' => $response]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Main.php"|"370"|"adminhtml_catalog_product_attribute_set_main_html_before"|"$this->_eventManager->dispatch(
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Main.php"|"371"|"adminhtml_catalog_product_attribute_set_main_html_before"|"$this->_eventManager->dispatch(
'adminhtml_catalog_product_attribute_set_main_html_before',
['block' => $this]);"
"app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Set/Toolbar/Main.php"|"59"|"adminhtml_catalog_product_attribute_set_toolbar_main_html_before"|"$this->_eventManager->dispatch(
@@ -214,7 +214,7 @@
'website_field' => new \Zend_Db_Expr('cs.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]);"
"app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/DefaultPrice.php"|"333"|"prepare_catalog_product_index_select"|"$this->_eventManager->dispatch(
"app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/DefaultPrice.php"|"349"|"prepare_catalog_product_index_select"|"$this->_eventManager->dispatch(
'prepare_catalog_product_index_select',
[
'select' => $select,
@@ -229,9 +229,9 @@
'rss_catalog_notify_stock_collection_select',
['collection' => $collection]);"
"app/code/Magento/Catalog/Plugin/Model/Product/Action/UpdateAttributesFlushCache.php"|"57"|"clean_cache_by_tags"|"$this->eventManager->dispatch('clean_cache_by_tags', ['object' => $this->cacheContext]);"
"app/code/Magento/CatalogImportExport/Model/Import/Product.php"|"896"|"catalog_product_import_bunch_delete_after"|"$this->_eventManager->dispatch('catalog_product_import_bunch_delete_after', ['adapter' => $this, 'bunch' => $bunch]);"
"app/code/Magento/CatalogImportExport/Model/Import/Product.php"|"920"|"catalog_product_import_finish_before"|"$this->_eventManager->dispatch('catalog_product_import_finish_before', ['adapter' => $this]);"
"app/code/Magento/CatalogImportExport/Model/Import/Product.php"|"1747"|"catalog_product_import_bunch_save_after"|"$this->_eventManager->dispatch(
"app/code/Magento/CatalogImportExport/Model/Import/Product.php"|"899"|"catalog_product_import_bunch_delete_after"|"$this->_eventManager->dispatch('catalog_product_import_bunch_delete_after', ['adapter' => $this, 'bunch' => $bunch]);"
"app/code/Magento/CatalogImportExport/Model/Import/Product.php"|"923"|"catalog_product_import_finish_before"|"$this->_eventManager->dispatch('catalog_product_import_finish_before', ['adapter' => $this]);"
"app/code/Magento/CatalogImportExport/Model/Import/Product.php"|"1754"|"catalog_product_import_bunch_save_after"|"$this->_eventManager->dispatch(
'catalog_product_import_bunch_save_after',
['adapter' => $this, 'bunch' => $bunch]);"
"app/code/Magento/CatalogInventory/Model/Indexer/Stock/AbstractAction.php"|"259"|"clean_cache_by_tags"|"$this->eventManager->dispatch('clean_cache_by_tags', ['object' => $this->cacheContext]);"
@@ -320,7 +320,7 @@
"app/code/Magento/Cms/Helper/Page.php"|"157"|"cms_page_render"|"$this->_eventManager->dispatch(
'cms_page_render',
['page' => $this->_page, 'controller_action' => $action]);"
"app/code/Magento/Cms/Helper/Wysiwyg/Images.php"|"153"|"cms_wysiwyg_images_static_urls_allowed"|"$this->_eventManager->dispatch(
"app/code/Magento/Cms/Helper/Wysiwyg/Images.php"|"161"|"cms_wysiwyg_images_static_urls_allowed"|"$this->_eventManager->dispatch(
'cms_wysiwyg_images_static_urls_allowed',
['result' => $checkResult, 'store_id' => $this->_storeId]);"
"app/code/Magento/Config/Block/System/Config/Form/Fieldset/Modules/DisableOutput.php"|"63"|"adminhtml_system_config_advanced_disableoutput_render_before"|"$this->_eventManager->dispatch(
@@ -351,16 +351,16 @@
"app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php"|"251"|"adminhtml_customer_save_after"|"$this->_eventManager->dispatch(
'adminhtml_customer_save_after',
['customer' => $customer, 'request' => $this->getRequest()]);"
"app/code/Magento/Customer/Model/AccountManagement.php"|"382"|"customer_customer_authenticated"|"$this->eventManager->dispatch(
"app/code/Magento/Customer/Model/AccountManagement.php"|"416"|"customer_customer_authenticated"|"$this->eventManager->dispatch(
'customer_customer_authenticated',
['model' => $customerModel, 'password' => $password]);"
"app/code/Magento/Customer/Model/AccountManagement.php"|"387"|"customer_data_object_login"|"$this->eventManager->dispatch('customer_data_object_login', ['customer' => $customer]);"
"app/code/Magento/Customer/Model/AccountManagement.php"|"421"|"customer_data_object_login"|"$this->eventManager->dispatch('customer_data_object_login', ['customer' => $customer]);"
"app/code/Magento/Customer/Model/Address/AbstractAddress.php"|"477"|"customer_address_format"|"$this->_eventManager->dispatch('customer_address_format', ['type' => $formatType, 'address' => $this]);"
"app/code/Magento/Customer/Model/Customer.php"|"387"|"customer_customer_authenticated"|"$this->_eventManager->dispatch(
"app/code/Magento/Customer/Model/Customer.php"|"388"|"customer_customer_authenticated"|"$this->_eventManager->dispatch(
'customer_customer_authenticated',
['model' => $this, 'password' => $password]);"
"app/code/Magento/Customer/Model/Customer.php"|"1008"|"customer_validate"|"$this->_eventManager->dispatch('customer_validate', ['customer' => $this, 'transport' => $transport]);"
"app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php"|"227"|"customer_save_after_data_object"|"$this->eventManager->dispatch(
"app/code/Magento/Customer/Model/Customer.php"|"1009"|"customer_validate"|"$this->_eventManager->dispatch('customer_validate', ['customer' => $this, 'transport' => $transport]);"
"app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php"|"246"|"customer_save_after_data_object"|"$this->eventManager->dispatch(
'customer_save_after_data_object',
['customer_data_object' => $savedCustomer, 'orig_customer_data_object' => $customer]);"
"app/code/Magento/Customer/Model/Session.php"|"177"|"customer_session_init"|"$this->_eventManager->dispatch('customer_session_init', ['customer_session' => $this]);"
@@ -369,8 +369,8 @@
"app/code/Magento/Customer/Model/Session.php"|"432"|"customer_login"|"$this->_eventManager->dispatch('customer_login', ['customer' => $customerModel]);"
"app/code/Magento/Customer/Model/Session.php"|"433"|"customer_data_object_login"|"$this->_eventManager->dispatch('customer_data_object_login', ['customer' => $customer]);"
"app/code/Magento/Customer/Model/Session.php"|"464"|"customer_logout"|"$this->_eventManager->dispatch('customer_logout', ['customer' => $this->getCustomer()]);"
"app/code/Magento/Customer/Model/Visitor.php"|"161"|"visitor_init"|"$this->_eventManager->dispatch('visitor_init', ['visitor' => $this]);"
"app/code/Magento/Customer/Model/Visitor.php"|"183"|"visitor_activity_save"|"$this->_eventManager->dispatch('visitor_activity_save', ['visitor' => $this]);"
"app/code/Magento/Customer/Model/Visitor.php"|"163"|"visitor_init"|"$this->_eventManager->dispatch('visitor_init', ['visitor' => $this]);"
"app/code/Magento/Customer/Model/Visitor.php"|"185"|"visitor_activity_save"|"$this->_eventManager->dispatch('visitor_activity_save', ['visitor' => $this]);"
"app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php"|"275"|"adminhtml_block_eav_attribute_edit_form_init"|"$this->_eventManager->dispatch(
'adminhtml_block_eav_attribute_edit_form_init',
['form' => $this->getForm()]);"
@@ -545,7 +545,7 @@ AbstractDataAssignObserver"
"app/code/Magento/Sales/Model/Config/Backend/Grid/AsyncIndexing.php"|"30"|"_dev_grid_async_indexing_"|"$this->_eventManager->dispatch(
$this->_eventPrefix . '_dev_grid_async_indexing_' . $state,
$this->_getEventData());"
"app/code/Magento/Sales/Model/Order/Address/Renderer.php"|"55"|"customer_address_format"|"$this->eventManager->dispatch('customer_address_format', ['type' => $formatType, 'address' => $address]);"
"app/code/Magento/Sales/Model/Order/Address/Renderer.php"|"60"|"customer_address_format"|"$this->eventManager->dispatch('customer_address_format', ['type' => $formatType, 'address' => $address]);"
"app/code/Magento/Sales/Model/Order/Creditmemo/RefundOperation.php"|"120"|"sales_order_creditmemo_refund"|"$this->eventManager->dispatch('sales_order_creditmemo_refund', ['creditmemo' => $creditmemo]);"
"app/code/Magento/Sales/Model/Order/Creditmemo/Sender/EmailSender.php"|"110"|"email_creditmemo_set_template_vars_before"|"$this->eventManager->dispatch(
'email_creditmemo_set_template_vars_before',
@@ -53,10 +53,10 @@
"lib/internal/Magento/Framework/Model/AbstractModel.php"|"858"|"model_delete_commit_after"|"$this->_eventManager->dispatch('model_delete_commit_after', ['object' => $this]);"
"lib/internal/Magento/Framework/Model/AbstractModel.php"|"859"|"_delete_commit_after"|"$this->_eventManager->dispatch($this->_eventPrefix . '_delete_commit_after', $this->_getEventData());"
"lib/internal/Magento/Framework/Model/AbstractModel.php"|"902"|"_clear"|"$this->_eventManager->dispatch($this->_eventPrefix . '_clear', $this->_getEventData());"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"531"|"core_collection_abstract_load_before"|"$this->_eventManager->dispatch('core_collection_abstract_load_before', ['collection' => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"533"|"_load_before"|"$this->_eventManager->dispatch($this->_eventPrefix . '_load_before', [$this->_eventObject => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"583"|"core_collection_abstract_load_after"|"$this->_eventManager->dispatch('core_collection_abstract_load_after', ['collection' => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"585"|"_load_after"|"$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"559"|"core_collection_abstract_load_before"|"$this->_eventManager->dispatch('core_collection_abstract_load_before', ['collection' => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"561"|"_load_before"|"$this->_eventManager->dispatch($this->_eventPrefix . '_load_before', [$this->_eventObject => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"611"|"core_collection_abstract_load_after"|"$this->_eventManager->dispatch('core_collection_abstract_load_after', ['collection' => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/Collection/AbstractCollection.php"|"613"|"_load_after"|"$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);"
"lib/internal/Magento/Framework/Model/ResourceModel/Db/VersionControl/RelationComposite.php"|"50"|"_process_relation"|"$this->eventManager->dispatch(
$object->getEventPrefix(). '_process_relation',
[
Oops, something went wrong.

0 comments on commit 39d278e

Please sign in to comment.
You can’t perform that action at this time.