$this->_eventManager->dispatch($this->_eventPrefix . ‘_load_before’, $params);
$this->_eventManager->dispatch($this->_eventPrefix . ‘_load_after’, $params);

$this->_eventManager->dispatch(
‘controller_action_predispatch_’ . $request->getFullActionName(),
$eventParameters
);

eg // controller_action_predispatch_checkout_cart_index

$this->_eventManager->dispatch(
‘controller_action_postdispatch_’ . $request->getFullActionName(),
$eventParameters
);
eg // controller_action_postdispatch_checkout_cart_index

Please click here to get more knowledge of events in magento 2.

Please login or Register to submit your answer

Log In

Not the answer you are looking for? Browse other questions tagged or ask your own question.