I am seen that some of magento modules has page_types.xml
at configuration section means ../etc/frontend section
.
<page_types xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_types.xsd">
<type id="checkout_cart_configure" label="Configure Cart Item (Any)"/>
<type id="checkout_cart_index" label="Shopping Cart"/>
<type id="checkout_onepage_failure" label="One Page Checkout Failure"/>
<type id="checkout_index_index" label="One Page Checkout"/>
<type id="checkout_onepage_paymentmethod" label="One Page Checkout Choose Payment Method"/>
<type id="checkout_onepage_review" label="One Page Checkout Overview"/>
<type id="checkout_onepage_shippingmethod" label="One Page Checkout Choose Shipping Method"/>
<type id="checkout_onepage_success" label="One Page Checkout Success"/>
</page_types>
So, my question
- Why are use this xml files?
- If we assume that is used for declaration of each actions of that
module's then if we create any custom module with out
page_types.xml
then those custom actions are also worked. Seems it confusing.Can anyone clear the idea of usepage_types.xml