<?php

    namespace MNM\Spitzner\Plugin;

    class AddStockLabel
    {
        /**
         * @param \Amasty\Stockstatus\Helper\Data $subject
         * @param string $result
         * @return string
         */
        public function afterShowStockStatus(\Amasty\Stockstatus\Helper\Data $subject, $result)
        {
            return str_replace('<div class="stock">', '<div class="stock">'.__('Verfügbarkeit').': ', $result);
        }
    }