RawParameterFactory.php in JSON-RPC 2.x
File
src/ParameterFactory/RawParameterFactory.php
View source
<?php
namespace Drupal\jsonrpc\ParameterFactory;
use Drupal\jsonrpc\ParameterDefinitionInterface;
use Shaper\Util\Context;
class RawParameterFactory extends ParameterFactoryBase {
public static function schema(ParameterDefinitionInterface $parameter_definition) {
return $parameter_definition
->getSchema();
}
public function getOutputValidator() {
return $this
->getInputValidator();
}
protected function doTransform($data, Context $context = NULL) {
return $data;
}
}