* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ class RetailcrmAdminAbstractController extends ModuleAdminController { public static function getId() { $tabId = (int) Tab::getIdFromClassName(static::getClassName()); if (!$tabId) { $tabId = null; } return $tabId; } public static function getParentId() { return -1; } public static function getClassName() { return str_replace('Controller', '', static::class); } public static function getName() { $name = []; foreach (Language::getLanguages(true) as $lang) { $name[$lang['id_lang']] = static::getClassName(); } return $name; } public static function getIcon() { return null; } public static function getPosition() { return null; } }