src/Factory/TaxonDetailsViewFactory.php 1 location
|
@@ 51-60 (lines=10) @@
|
48 |
|
return $currentTaxonView; |
49 |
|
} |
50 |
|
|
51 |
|
private function buildTaxonView(TaxonInterface $taxon, $locale): TaxonView |
52 |
|
{ |
53 |
|
$taxonView = $this->taxonViewFactory->create($taxon, $locale); |
54 |
|
|
55 |
|
foreach ($taxon->getChildren() as $childTaxon) { |
56 |
|
$taxonView->children[] = $this->buildTaxonView($childTaxon, $locale); |
57 |
|
} |
58 |
|
|
59 |
|
return $taxonView; |
60 |
|
} |
61 |
|
} |
62 |
|
|
src/Controller/Taxon/ShowTaxonTreeAction.php 1 location
|
@@ 57-66 (lines=10) @@
|
54 |
|
return $this->viewHandler->handle(View::create($taxonViews, Response::HTTP_OK)); |
55 |
|
} |
56 |
|
|
57 |
|
private function buildTaxonView(TaxonInterface $taxon, $locale): TaxonView |
58 |
|
{ |
59 |
|
$taxonView = $this->taxonViewFactory->create($taxon, $locale); |
60 |
|
|
61 |
|
foreach ($taxon->getChildren() as $childTaxon) { |
62 |
|
$taxonView->children[] = $this->buildTaxonView($childTaxon, $locale); |
63 |
|
} |
64 |
|
|
65 |
|
return $taxonView; |
66 |
|
} |
67 |
|
} |
68 |
|
|