You are here

public function JsonSchemaEncoder::__construct in Schemata 8

Create a JsonSchemaEncoder instance.

Parameters

\Symfony\Component\Serializer\Encoder\EncoderInterface $inner_encoder:

Overrides JsonEncoder::__construct

File

schemata_json_schema/src/Encoder/JsonSchemaEncoder.php, line 34

Class

JsonSchemaEncoder
Encodes data into json_schema.

Namespace

Drupal\schemata_json_schema\Encoder

Code

public function __construct(EncoderInterface $inner_encoder) {
  parent::__construct();
  $this->innerEncoder = $inner_encoder;
}