| @@ 467-482 (lines=16) @@ | ||
| 464 | /** |
|
| 465 | * @inheritdoc |
|
| 466 | */ |
|
| 467 | public function organizerJSONLD($organizerId) |
|
| 468 | { |
|
| 469 | ||
| 470 | try { |
|
| 471 | $organizerJSONLD = $this->organizerService->getEntity( |
|
| 472 | $organizerId |
|
| 473 | ); |
|
| 474 | ||
| 475 | return json_decode($organizerJSONLD); |
|
| 476 | } catch (EntityNotFoundException $e) { |
|
| 477 | // In case the place can not be found at the moment, just add its ID |
|
| 478 | return array( |
|
| 479 | '@id' => $this->organizerService->iri($organizerId) |
|
| 480 | ); |
|
| 481 | } |
|
| 482 | } |
|
| 483 | ||
| 484 | /** |
|
| 485 | * @param EventWasLabelled $eventWasLabelled |
|
| @@ 471-485 (lines=15) @@ | ||
| 468 | * @param string $organizerId |
|
| 469 | * @return array |
|
| 470 | */ |
|
| 471 | protected function organizerJSONLD($organizerId) |
|
| 472 | { |
|
| 473 | try { |
|
| 474 | $organizerJSONLD = $this->organizerService->getEntity( |
|
| 475 | $organizerId |
|
| 476 | ); |
|
| 477 | ||
| 478 | return json_decode($organizerJSONLD); |
|
| 479 | } catch (EntityNotFoundException $e) { |
|
| 480 | // In case the place can not be found at the moment, just add its ID |
|
| 481 | return array( |
|
| 482 | '@id' => $this->organizerService->iri($organizerId) |
|
| 483 | ); |
|
| 484 | } |
|
| 485 | } |
|
| 486 | } |
|
| 487 | ||