getModule('product')->params['category_group']; } public static function getBrandGroupId() { return \Yii::$app->getModule('product')->params['brand_group']; } public static function getCategories() { return TaxOption::find()->getTree(self::getCategoryGroupId()); } public static function getBrands() { return TaxOption::find()->where(['tax_group_id' => self::getBrandGroupId()]); } }