| @@ 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 |
|
| @@ 446-460 (lines=15) @@ | ||
| 443 | * @param string $organizerId |
|
| 444 | * @return array |
|
| 445 | */ |
|
| 446 | protected function organizerJSONLD($organizerId) |
|
| 447 | { |
|
| 448 | try { |
|
| 449 | $organizerJSONLD = $this->organizerService->getEntity( |
|
| 450 | $organizerId |
|
| 451 | ); |
|
| 452 | ||
| 453 | return json_decode($organizerJSONLD); |
|
| 454 | } catch (EntityNotFoundException $e) { |
|
| 455 | // In case the place can not be found at the moment, just add its ID |
|
| 456 | return array( |
|
| 457 | '@id' => $this->organizerService->iri($organizerId) |
|
| 458 | ); |
|
| 459 | } |
|
| 460 | } |
|
| 461 | } |
|
| 462 | ||