* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\Mbo\Traits\Hooks; use PrestaShop\Module\Mbo\Traits\HaveCdcComponent; trait UseDashboardZoneThree { use HaveCdcComponent; /** * @return void * * @throws \Exception */ public function bootUseDashboardZoneThree(): void { if (method_exists($this, 'addAdminControllerMedia')) { $this->addAdminControllerMedia('loadMediaForDashboardColumnThree'); } } /** * Display addons data & links in the third column of the dashboard * * @return false|string */ public function hookDashboardZoneThree() { return $this->smartyDisplayTpl('dashboard-zone-three.tpl'); } /** * Add JS and CSS file * * @return void * * @see \PrestaShop\Module\Mbo\Traits\Hooks\UseActionAdminControllerSetMedia */ protected function loadMediaForDashboardColumnThree(): void { $this->loadCdcMediaFilesForControllers(['AdminDashboard']); } }