core/modules/rest/src/Annotation/RestResource.php | 27 +++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/core/modules/rest/src/Annotation/RestResource.php b/core/modules/rest/src/Annotation/RestResource.php index 0af11a8..b8e389b 100644 --- a/core/modules/rest/src/Annotation/RestResource.php +++ b/core/modules/rest/src/Annotation/RestResource.php @@ -23,14 +23,14 @@ class RestResource extends Plugin { /** - * The resource plugin ID. + * The REST resource plugin ID. * * @var string */ public $id; /** - * The human-readable name of the resource plugin. + * The human-readable name of the REST resource plugin. * * @ingroup plugin_translatable * @@ -41,8 +41,31 @@ class RestResource extends Plugin { /** * The serialization class to deserialize serialized data into. * + * @see \Symfony\Component\Serializer\SerializerInterface's "type" parameter. + * * @var string (optional) */ public $serialization_class; + /** + * The deriver class for this resource plugin, if any. + * + * @see \Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator::getDeriverClass() + * + * @var string|null + */ + public $deriver; + + /** + * The URI paths that this REST resource plugin provides. + * + * Key-value pairs, with link relation type plugin IDs as keys, and URL + * templates as values. + * + * @see core/core.link_relation_types.yml + * + * @var string[] + */ + public $uri_paths; + }