original_string: public function getIcon($title, Table $table) {
          if ($this->icon) {
              $icon = str_replace(array('%DATATABLE_ASSETS%', '%SIZE%'), array($table->getAssetsURL(), $this->iconSize . 'x' . $this->iconSize), $this->icon);
              if ('%MPF_ASSETS%' == substr($icon, 0, 12)) {
                  $icon = AssetsPublisher::get()->mpfAssetFile(substr($icon, 12));
              }
              return Html::get()->image($icon, $title);
          }
          return '';
      }
code: public function getIcon($title, Table $table) {
          if ($this->icon) {
              $icon = str_replace(array('%DATATABLE_ASSETS%', '%SIZE%'), array($table->getAssetsURL(), $this->iconSize . 'x' . $this->iconSize), $this->icon);
              if ('%MPF_ASSETS%' == substr($icon, 0, 12)) {
                  $icon = AssetsPublisher::get()->mpfAssetFile(substr($icon, 12));
              }
              return Html::get()->image($icon, $title);
          }
          return '';
      }
code_tokens: public function getIcon ( $ title , Table $ table ) { if ( $ this -> icon ) { $ icon = str_replace ( array ( '%DATATABLE_ASSETS%' , '%SIZE%' ) , array ( $ table -> getAssetsURL ( ) , $ this -> iconSize . 'x' . $ this -> iconSize ) , $ this -> icon ) ; if ( '%MPF_ASSETS%' == substr ( $ icon , 0 , 12 ) ) { $ icon = AssetsPublisher :: get ( ) -> mpfAssetFile ( substr ( $ icon , 12 ) ) ; } return Html :: get ( ) -> image ( $ icon , $ title ) ; } return '' ; }
docstring: Get HTML img tag for icon or an empty string if there is no icon
  @param string $title
  @param \mpf\widgets\datatable\Table $table
  @return string
docstring_tokens: Get HTML img tag for icon or an empty string if there is no icon