File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,16 @@ public function listAnimalUrls(): array
61
61
}
62
62
63
63
/**
64
- * Get configuration details of farmer plugin enriched by animal name and urls
64
+ * Get configuration details of farmer plugin enriched by list of animals
65
65
*
66
66
* @return array
67
67
*/
68
68
public function getFarmerConfig (): array
69
69
{
70
70
$ farmerConfig = $ this ->helper ->getConfig ();
71
- foreach ($ this ->helper ->getAllAnimals () as $ animal ) {
72
- $ farmerConfig ['animals ' ][$ animal ] = $ this ->helper ->getAnimalURL ($ animal );
71
+ foreach ($ this ->helper ->getAllAnimals () as $ index =>$ animal ) {
72
+ $ farmerConfig ['animals ' ][$ index ]["name " ] =$ animal ;
73
+ $ farmerConfig ['animals ' ][$ index ]["url " ] = $ this ->helper ->getAnimalURL ($ animal );
73
74
}
74
75
return $ farmerConfig ;
75
76
}
You can’t perform that action at this time.
0 commit comments