Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-admin-notification/etc/adminhtml/events.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
/**
 * Smile_ElasticsuiteAdminNotification adminhtml events.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
 * versions in the future.
 *
 * @category  Smile
 * @package   Smile\ElasticsuiteAdminNotification
 * @author    Romain RUAUD <romain.ruaud@smile.fr>
 * @copyright 2020 Smile
 * @license   Open Software License ("OSL") v. 3.0
 */
 -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">

    <event name="controller_action_predispatch">
        <!-- This observer is a virtual type defined in DI -->
        <observer name="elasticsuite-admin-notification" instance="Smile\ElasticsuiteAdminNotification\Observer\PredispatchAdminActionControllerObserver" />
    </event>

</config>