lib/api/PluginHelper/callSyncPlugin.js
function callSyncPlugin (pluginHelper, methodName, args) {
  var plugins = pluginHelper.filter(filterByMethod(methodName));
  args.schema = pluginHelper[__internal].schema;
  args.config = args.schema.config;

  return callNextPlugin(plugins, methodName, args);
}
function callSyncPlugin (pluginHelper, methodName, args) {
  var plugins = pluginHelper.filter(filterByMethod(methodName));
  args.schema = pluginHelper[__internal].schema;
  args.config = args.schema.config;

  return callNextPlugin(plugins, methodName, args);
}
function callSyncPlugin ( pluginHelper , methodName , args ) { var plugins = pluginHelper . filter ( filterByMethod ( methodName ) ) ; args . schema = pluginHelper [ __internal ] . schema ; args . config = args . schema . config ; return callNextPlugin ( plugins , methodName , args ) ; }
Calls a synchronous plugin method with the given arguments.

@param {PluginHelper} pluginHelper - The {@link PluginHelper} whose plugins are called
@param {string} methodName - The name of the plugin method to call
@param {object} args - The arguments to pass to the method

@returns {{ result: *, plugin: ?object }}
If the method was handled by a plugin (i.e. the plugin didn't call next()), then the returned
object will contain a reference to the plugin, and the result that was returned by the plugin.
Calls a synchronous plugin method with the given arguments .