packbackbooks / lti-1-3-php-library

A library used for building IMS-certified LTI 1.3 tool providers in PHP.
Apache License 2.0
39 stars 25 forks source link

`resourceId` and `tag` of an `LtiLineItem` are ignored in `DeepLinkResources\Resouce` #141

Closed gkreitz closed 3 months ago

gkreitz commented 3 months ago

When returning a line item as a deep link resource, a tool can set resourceId and tag according to https://www.imsglobal.org/spec/lti-dl/v2p0#lti-resource-link . However, in Resource::getArray(), only scoreMaximum and label of a line item will be included, https://github.com/packbackbooks/lti-1-3-php-library/blob/master/src/DeepLinkResources/Resource.php#L51 . It would make sense to me if resourceId and tag were also populated for line item deep links.