RestResource::$serialization_class

Same name in other branches
  1. 9 core/modules/rest/src/Annotation/RestResource.php \Drupal\rest\Annotation\RestResource::serialization_class
  2. 8.9.x core/modules/rest/src/Annotation/RestResource.php \Drupal\rest\Annotation\RestResource::serialization_class
  3. 10 core/modules/rest/src/Annotation/RestResource.php \Drupal\rest\Annotation\RestResource::serialization_class

The serialization class to deserialize serialized data into.

This property is optional and it does not need to be declared.

Type: string

See also

\Symfony\Component\Serializer\SerializerInterface's "type" parameter.

File

core/modules/rest/src/Annotation/RestResource.php, line 50

Class

RestResource
Defines a REST resource annotation object.

Namespace

Drupal\rest\Annotation

Code

public $serialization_class;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.