Skip to content

Magento 2 – change block class in layout

I know I can change the template of a block with:

<referenceBlock name="copyright">
    <action method="setTemplate">
        <argument name="template" xsi:type="string">Dfr_Backend::page/copyright.phtml</argument>
    </action>
</referenceBlock>

But how can I change the block class?