original_string: public function getPluginsLoadedAndActivated()
      {
          if (is_null($this->pluginsLoadedAndActivated)) {
              $enabled = $this->getActivatedPlugins();
  
              if (empty($enabled)) {
                  return array();
              }
  
              $plugins = $this->getLoadedPlugins();
              $enabled = array_combine($enabled, $enabled);
              $plugins = array_intersect_key($plugins, $enabled);
  
              $this->pluginsLoadedAndActivated = $plugins;
          }
  
          return $this->pluginsLoadedAndActivated;
      }
code: public function getPluginsLoadedAndActivated()
      {
          if (is_null($this->pluginsLoadedAndActivated)) {
              $enabled = $this->getActivatedPlugins();
  
              if (empty($enabled)) {
                  return array();
              }
  
              $plugins = $this->getLoadedPlugins();
              $enabled = array_combine($enabled, $enabled);
              $plugins = array_intersect_key($plugins, $enabled);
  
              $this->pluginsLoadedAndActivated = $plugins;
          }
  
          return $this->pluginsLoadedAndActivated;
      }
code_tokens: public function getPluginsLoadedAndActivated ( ) { if ( is_null ( $ this -> pluginsLoadedAndActivated ) ) { $ enabled = $ this -> getActivatedPlugins ( ) ; if ( empty ( $ enabled ) ) { return array ( ) ; } $ plugins = $ this -> getLoadedPlugins ( ) ; $ enabled = array_combine ( $ enabled , $ enabled ) ; $ plugins = array_intersect_key ( $ plugins , $ enabled ) ; $ this -> pluginsLoadedAndActivated = $ plugins ; } return $ this -> pluginsLoadedAndActivated ; }
docstring: Returns an array of plugins that are currently loaded and activated,
  mapping loaded plugin names with their plugin objects, eg,
  
  array(
  'UserCountry' => Plugin $pluginObject,
  'UserLanguage' => Plugin $pluginObject,
  );
  
  @return Plugin[]
docstring_tokens: Returns an array of plugins that are currently loaded and activated mapping loaded plugin names with their plugin objects eg