Skip to content

Commit

Permalink
Merge pull request #4 from oat-sa/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ekkinox authored Oct 12, 2020
2 parents 7faa5a8 + 2c6b92c commit a1ef0d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/deep-linking-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ use OAT\Library\Lti1p3DeepLinking\Factory\ResourceCollectionFactory;
$result = $validator->validateToolOriginatingLaunch($request);

if (!$result->hasError()) {
// You have access to platform deep linking content items claim
// You have access to tool deep linking content items claim
$contentItems = $result->getPayload()->getDeepLinkingContentItems();

// You can use the ResourceCollectionFactory to ease the resources extraction as collection
Expand All @@ -322,8 +322,8 @@ if (!$result->hasError()) {
echo $returnedLink->getUrl(); // 'http://tool.com/some-link'

$returnedLtiResourceLinkLink = current($returnedResourceCollection->getByType(LtiResourceLinkInterface::TYPE));
echo $returnedLink->getIdentifier(); // 'ltiResourceLinkIdentifier'
echo $returnedLink->getUrl(); // 'http://tool.com/launch'
echo $returnedLtiResourceLinkLink->getIdentifier(); // 'ltiResourceLinkIdentifier'
echo $returnedLtiResourceLinkLink->getUrl(); // 'http://tool.com/launch'
...
}
```
Expand Down

0 comments on commit a1ef0d0

Please sign in to comment.