original_string: public function plugin_name($component) {
  
          $pluginfo = $this->get_plugin_info($component);
  
          if (is_null($pluginfo)) {
              throw new moodle_exception('err_unknown_plugin', 'core_plugin', '', array('plugin' => $component));
          }
  
          return $pluginfo->displayname;
      }
code: public function plugin_name($component) {
  
          $pluginfo = $this->get_plugin_info($component);
  
          if (is_null($pluginfo)) {
              throw new moodle_exception('err_unknown_plugin', 'core_plugin', '', array('plugin' => $component));
          }
  
          return $pluginfo->displayname;
      }
code_tokens: public function plugin_name ( $ component ) { $ pluginfo = $ this -> get_plugin_info ( $ component ) ; if ( is_null ( $ pluginfo ) ) { throw new moodle_exception ( 'err_unknown_plugin' , 'core_plugin' , '' , array ( 'plugin' => $ component ) ) ; } return $ pluginfo -> displayname ; }
docstring: Returns a localized name of a given plugin
  
  @param string $component name of the plugin, eg mod_workshop or auth_ldap
  @return string
docstring_tokens: Returns a localized name of a given plugin