/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Kpi/Row
NameSizeModeActions
HookableKpiRowFactory.php39820644editdlrm
KpiRow.php24430644editdlrm
KpiRowFactoryInterface.php13430644editdlrm
KpiRowInterface.php17290644editdlrm
KpiRowPresenter.php16930644editdlrm
KpiRowPresenterInterface.php13770644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Kpi/Row/KpiRowPresenter.php (1693B)
* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Kpi\Row; use PrestaShop\PrestaShop\Core\Kpi\KpiInterface; /** * Class KpiRowPresenter presents a KPI row. */ final class KpiRowPresenter implements KpiRowPresenterInterface { /** * {@inheritdoc} */ public function present(KpiRowInterface $kpiRow) { $renderedKpis = []; /** @var KpiInterface $kpi */ foreach ($kpiRow->getKpis() as $kpi) { $renderedKpis[] = $kpi->render(); } return [ 'kpis' => $renderedKpis, 'allowRefresh' => $kpiRow->isRefreshAllowed(), ]; } }