| 1 | <?php |
||
| 23 | trait JsonLdContextTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Updates the given JSON-LD document to add its @context key. |
||
| 27 | * |
||
| 28 | * @param ContextBuilderInterface $contextBuilder |
||
| 29 | * @param string $resourceClass |
||
| 30 | * @param array $context |
||
| 31 | * @param array $data |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | private function addJsonLdContext(ContextBuilderInterface $contextBuilder, string $resourceClass, array &$context, array $data = []) : array |
||
| 53 | } |
||
| 54 |