original_string: public function getLoadedPlugin($name)
      {
          if (!isset($this->loadedPlugins[$name]) || is_null($this->loadedPlugins[$name])) {
              throw new \Exception("The plugin '$name' has not been loaded.");
          }
          return $this->loadedPlugins[$name];
      }
code: public function getLoadedPlugin($name)
      {
          if (!isset($this->loadedPlugins[$name]) || is_null($this->loadedPlugins[$name])) {
              throw new \Exception("The plugin '$name' has not been loaded.");
          }
          return $this->loadedPlugins[$name];
      }
code_tokens: public function getLoadedPlugin ( $ name ) { if ( ! isset ( $ this -> loadedPlugins [ $ name ] ) || is_null ( $ this -> loadedPlugins [ $ name ] ) ) { throw new \ Exception ( "The plugin '$name' has not been loaded." ) ; } return $ this -> loadedPlugins [ $ name ] ; }
docstring: Returns a Plugin object by name.
  
  @param string $name The name of the plugin, eg, `'Actions'`.
  @throws \Exception If the plugin has not been loaded.
  @return Plugin
docstring_tokens: Returns a Plugin object by name .