I am overriding default.phtml and remove.phtml here by using core block but i need to use my custom block also.how do i achieve?
<referenceBlock name="checkout.cart.item.renderers">
<block class="Magento\Checkout\Block\Cart\Item\Renderer" name="checkout.cart.item.renderers.default" as="default" template="Custom_Module::cart/item/default.phtml">
<block class="Magento\Checkout\Block\Cart\Item\Renderer\Actions" name="checkout.cart.item.renderers.default.actions" as="actions">
<block class="Magento\Checkout\Block\Cart\Item\Renderer\Actions\Remove" name="checkout.cart.item.renderers.default.actions.remove" template="Custom_Module::cart/item/renderer/actions/remove.phtml"/>
</block>
</block>
</referenceBlock>
like this
<referenceBlock name="checkout.cart.item.renderers">
<block class="Magento\Checkout\Block\Cart\Item\Renderer" name="checkout.cart.item.renderers.default" as="default" template="Custom_Module::cart/item/default.phtml">
<block class="Magento\Checkout\Block\Cart\Item\Renderer\Actions" name="checkout.cart.item.renderers.default.actions" as="actions">
<block class="Magento\Checkout\Block\Cart\Item\Renderer\Actions\Remove" name="checkout.cart.item.renderers.default.actions.remove" template="Custom_Module::cart/item/renderer/actions/remove.phtml"/>
**<block class="Custom\Module\Block\Cart\Item\Renderer\Actions\Remove" name="checkout.cart.item.renderers.custom.actions.remove" template="Custom_Module::cart/item/renderer/actions/remove.phtml"/>**
</block>
</block>
</referenceBlock>
basically i wanted to use 2 block classes for single remove.phtml file.
Thanks.