class RawParameterFactory in JSON-RPC 8
Same name and namespace in other branches
- 2.x src/ParameterFactory/RawParameterFactory.php \Drupal\jsonrpc\ParameterFactory\RawParameterFactory
Class RawParameterFactory just returns the raw parameter.
@package Drupal\jsonrpc\ParameterFactory
Hierarchy
- class \Drupal\jsonrpc\ParameterFactory\ParameterFactoryBase extends \Shaper\Transformation\TransformationBase implements ParameterFactoryInterface
- class \Drupal\jsonrpc\ParameterFactory\RawParameterFactory
Expanded class hierarchy of RawParameterFactory
1 file declares its use of RawParameterFactory
- RpcRequestFactory.php in src/
Shaper/ RpcRequestFactory.php
File
- src/
ParameterFactory/ RawParameterFactory.php, line 13
Namespace
Drupal\jsonrpc\ParameterFactoryView source
class RawParameterFactory extends ParameterFactoryBase {
/**
* {@inheritdoc}
*/
public static function schema(ParameterDefinitionInterface $parameter_definition) {
return $parameter_definition
->getSchema();
}
/**
* {@inheritdoc}
*/
public function getOutputValidator() {
// The input is the same as the output.
return $this
->getInputValidator();
}
/**
* {@inheritdoc}
*/
protected function doTransform($data, Context $context = NULL) {
return $data;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParameterFactoryBase:: |
protected | property | The parameter definition. | |
ParameterFactoryBase:: |
protected | property | The validation class for shaper interactions. | |
ParameterFactoryBase:: |
protected | property | The schema validator to ensure the input data adheres to the expectation. | |
ParameterFactoryBase:: |
public static | function |
Instantiates a new instance of this class. Overrides ParameterFactoryInterface:: |
1 |
ParameterFactoryBase:: |
public | function | ||
ParameterFactoryBase:: |
public | function | ParameterFactoryBase constructor. | 1 |
RawParameterFactory:: |
protected | function | ||
RawParameterFactory:: |
public | function | ||
RawParameterFactory:: |
public static | function |
An array representing the JSON Schema for acceptable input to the factory. Overrides ParameterFactoryInterface:: |