Skip to content
Snippets Groups Projects
Select Git revision
  • 5b2e5cc720f148447380551f064f1728392c1335
  • dev default protected
  • prod protected
  • 1.0.58
  • 1.0.57
  • 1.0.52
  • 1.0.56
  • 1.0.51
  • 1.0.50
  • 1.0.33
  • 1.0.32
  • 1.0.31
  • 1.0.30
  • 1.0.29
  • 1.0.28
  • 1.0.27
  • 1.0.26
  • 1.0.25
  • 1.0.24
  • 1.0.23
  • 1.0.22
  • 1.0.21
  • 1.0.20
23 results

Generic.php

Blame
  • Generic.php 532 B
    <?php
    
    namespace BobGroup\BobGo\Model\Source;
    
    /**
     * Bob Go Free Method source implementation
     */
    class Freemethod extends Method
    {
        /**
         * {@inheritdoc}
         */
        public function toOptionArray()
        {
            //Returns an array of arrays, each of which has a 'value' and a 'label'. The 'value' is the code for the shipping method, and the 'label' is the name of the shipping method.
            $arr = parent::toOptionArray();
            array_unshift($arr, ['value' => '', 'label' => __('None')]);
            return $arr;
        }
    }