magetno 2 create helper

<?php
namespace Gielberkers\Example\Helper;
use Magento\Framework\App\Helper\AbstractHelper;
/**
* Class Data
* @package Gielberkers\Example\Helper
*/
class Data extends AbstractHelper
{
    /**
     * Stub
     * @return string
     */
    public function doSomething()
    {
        return ‘Foo’;
    }
}

Leave a Comment