public function get_plugin_name() {
        if ($this->plugin === 'core') {
            $string = get_string('core', 'tool_monitor');
        } else if (get_string_manager()->string_exists('pluginname', $this->plugin)) {
            $string = get_string('pluginname', $this->plugin);
        } else {
            $string = $this->plugin;
        }
        return $string;
    }
public function get_plugin_name() {
        if ($this->plugin === 'core') {
            $string = get_string('core', 'tool_monitor');
        } else if (get_string_manager()->string_exists('pluginname', $this->plugin)) {
            $string = get_string('pluginname', $this->plugin);
        } else {
            $string = $this->plugin;
        }
        return $string;
    }
public function get_plugin_name ( ) { if ( $ this -> plugin === 'core' ) { $ string = get_string ( 'core' , 'tool_monitor' ) ; } else if ( get_string_manager ( ) -> string_exists ( 'pluginname' , $ this -> plugin ) ) { $ string = get_string ( 'pluginname' , $ this -> plugin ) ; } else { $ string = $ this -> plugin ; } return $ string ; }
Get name of the plugin associated with this rule

@return string Plugin name.
Get name of the plugin associated with this rule