$data[0
]['downloads'
] =
$this->
getArticleDownloads($id);
$data[0
]['customerGroups'
] =
$this->
getArticleCustomerGroups($id);
$data[0
]['mainPrices'
] =
$this->
getPrices($data[0
]['mainDetail'
]['id'
],
$tax);
$data[0
]['configuratorSet'
] =
$this->
getArticleConfiguratorSet($id);
$data[0
]['dependencies'
] =
[];
if (!
empty($data[0
]['configuratorSetId'
])) { $data[0
]['dependencies'
] =
$this->
getArticleDependencies($data[0
]['configuratorSetId'
]);
} $data[0
]['configuratorTemplate'
] =
$this->
getArticleConfiguratorTemplate($id,
$tax);
if ($data[0
]['added'
] &&
$data[0
]['added'
] instanceof DateTime
) { $added =
$data[0
]['added'
];
$data[0
]['added'
] =
$added->
format('d.m.Y'
);
} return $data;
} /**
* Internal helper function to convert gross prices to net prices.
*
* @param array $prices
* @param array $tax
*
* @return array
*/