* @git Kumwe CMS * @license GNU General Public License version 2; see LICENSE.txt */ namespace Kumwe\CMS\Model; use Joomla\Database\DatabaseDriver; use Joomla\Model\DatabaseModelInterface; use Joomla\Model\DatabaseModelTrait; /** * Model class * source: https://github.com/joomla/framework.joomla.org/blob/master/src/Model/PackageModel.php */ class DashboardModel implements DatabaseModelInterface { use DatabaseModelTrait; /** * Instantiate the model. * * @param DatabaseDriver $db The database adapter. */ public function __construct(DatabaseDriver $db) { $this->setDb($db); } /** * Get an active dashboard template name * * @param string $dashboardName The dashboard to lookup * * @return string * */ public function getDashboard(string $dashboardName): string { return 'dashboard.twig'; // only one at this time } }