You are here

public static function ScalarPluginBase::serialize in GraphQL 8.3

Serializes the scalar value.

Parameters

mixed $value: The value to serialize.

3 methods override ScalarPluginBase::serialize()
Any::serialize in modules/graphql_core/src/Plugin/GraphQL/Scalars/TypedData/Any.php
Serializes the scalar value.
Map::serialize in modules/graphql_core/src/Plugin/GraphQL/Scalars/TypedData/Map.php
Serializes the scalar value.
Upload::serialize in src/Plugin/GraphQL/Scalars/Upload/Upload.php
Serializes the scalar value.

File

src/Plugin/GraphQL/Scalars/ScalarPluginBase.php, line 56

Class

ScalarPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Scalars

Code

public static function serialize($value) {
  throw new \LogicException('Missing method.');
}