Types
Register a new Type
<!-- Create a new Type based on a Virtual Type class -->
<virtualType name="Basic\Example\Model\Queue\Consumer\Type\AmazonAlexa"
type="MageHook\Hook\Model\Queue\Consumer\Type\Type"/>
<!-- Register Type class -->
<type name="MageHook\Hook\Model\Queue\ConsumerTypeList">
<arguments>
<argument name="types"
xsi:type="array">
<item name="amazon_alexa"
xsi:type="object">Basic\Example\Model\Queue\Consumer\Type\AmazonAlexa</item>
</argument>
</arguments>
</type><config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:MageHook_Hook/etc/webhooks.xsd">
<hook event="test_hook_event"
title="Test Hook Title"
purpose="Test Purpose"
group="Test Group"
type="amazon_alexa"/>
</config>Configuration
Custom configuration
Type Middleware
Push a global Middleware
Push a Middleware into a specific Type
Type module development
Last updated