<figure class="auto qrcode">
    <?php $label = $block->qrlabel() ?>   
    <?= $page->qrcode(['labelText' => (string)$label,])->html(
        $page->slug() . '.png', // image format detected from extension
        ['class' => 'qrcode']
    ); ?>
</figure>