original_string: public function get_icon_name_map() {
          if ($this->map === []) {
              $cache = \cache::make('core', 'fontawesomeiconmapping');
  
              $this->map = $cache->get('mapping');
  
              if (empty($this->map)) {
                  $this->map = $this->get_core_icon_map();
                  $callback = 'get_fontawesome_icon_map';
  
                  if ($pluginsfunction = get_plugins_with_function($callback)) {
                      foreach ($pluginsfunction as $plugintype => $plugins) {
                          foreach ($plugins as $pluginfunction) {
                              $pluginmap = $pluginfunction();
                              $this->map += $pluginmap;
                          }
                      }
                  }
                  $cache->set('mapping', $this->map);
              }
  
          }
          return $this->map;
      }
code: public function get_icon_name_map() {
          if ($this->map === []) {
              $cache = \cache::make('core', 'fontawesomeiconmapping');
  
              $this->map = $cache->get('mapping');
  
              if (empty($this->map)) {
                  $this->map = $this->get_core_icon_map();
                  $callback = 'get_fontawesome_icon_map';
  
                  if ($pluginsfunction = get_plugins_with_function($callback)) {
                      foreach ($pluginsfunction as $plugintype => $plugins) {
                          foreach ($plugins as $pluginfunction) {
                              $pluginmap = $pluginfunction();
                              $this->map += $pluginmap;
                          }
                      }
                  }
                  $cache->set('mapping', $this->map);
              }
  
          }
          return $this->map;
      }
code_tokens: public function get_icon_name_map ( ) { if ( $ this -> map === [ ] ) { $ cache = \ cache :: make ( 'core' , 'fontawesomeiconmapping' ) ; $ this -> map = $ cache -> get ( 'mapping' ) ; if ( empty ( $ this -> map ) ) { $ this -> map = $ this -> get_core_icon_map ( ) ; $ callback = 'get_fontawesome_icon_map' ; if ( $ pluginsfunction = get_plugins_with_function ( $ callback ) ) { foreach ( $ pluginsfunction as $ plugintype => $ plugins ) { foreach ( $ plugins as $ pluginfunction ) { $ pluginmap = $ pluginfunction ( ) ; $ this -> map += $ pluginmap ; } } } $ cache -> set ( 'mapping' , $ this -> map ) ; } } return $ this -> map ; }
docstring: Overridable function to get a mapping of all icons.
  Default is to do no mapping.
docstring_tokens: Overridable function to get a mapping of all icons . Default is to do no mapping .