From 408fcb27fc1ee4008b958b947b1a2789254f4647 Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Tue, 7 May 2024 15:02:28 +0100 Subject: [PATCH] https://github.com/cabinetsbay/core/issues/6 --- app/code/Sharapov/Cabinetsbay/Block/Category/View.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/code/Sharapov/Cabinetsbay/Block/Category/View.php b/app/code/Sharapov/Cabinetsbay/Block/Category/View.php index 81d61a2..282dec0 100644 --- a/app/code/Sharapov/Cabinetsbay/Block/Category/View.php +++ b/app/code/Sharapov/Cabinetsbay/Block/Category/View.php @@ -28,7 +28,7 @@ function images():array {$r = []; /** @var array(string => string) $r */ * 2024-03-13 Dmitrii Fediuk https://upwork.com/fl/mage2pro * 1) "Refactor the `Sharapov_Cabinetsbay` module": https://github.com/cabinetsbay/site/issues/98 * 2) I use `(int)` because @uses \Magento\Framework\Model\AbstractModel::getId() return a string. - * @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml + * @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml */ function isPA():bool {return 4036 === (int)$this->getCurrentCategory()->getId();} @@ -36,7 +36,7 @@ function isPA():bool {return 4036 === (int)$this->getCurrentCategory()->getId(); * 2024-03-13 Dmitrii Fediuk https://upwork.com/fl/mage2pro * 1) "Refactor the `Sharapov_Cabinetsbay` module": https://github.com/cabinetsbay/site/issues/98 * 2) I use `(int)` because @uses \Magento\Framework\Model\AbstractModel::getId() return a string. - * @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml + * @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml */ function isRTA():bool {return 3411 === (int)$this->getCurrentCategory()->getId();} @@ -44,7 +44,7 @@ function isRTA():bool {return 3411 === (int)$this->getCurrentCategory()->getId() * 2024-03-10 Dmitrii Fediuk https://upwork.com/fl/mage2pro * "Refactor the `Sharapov_Cabinetsbay` module": https://github.com/cabinetsbay/site/issues/98 * @see cb_category_is_l2() - * @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml + * @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml */ function level():int {return df_category_level($this->getCurrentCategory());} @@ -63,7 +63,7 @@ function level():int {return df_category_level($this->getCurrentCategory());} * @used-by self::images() * @used-by self::l3a() * @used-by self:l3p() - * @used-by app/design/frontend/Cabinetsbay/cabinetsbay_default/Magento_Catalog/templates/category/view.phtml + * @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/view.phtml * @used-by vendor/cabinetsbay/catalog/view/frontend/templates/category/tabs/overview.phtml (https://github.com/cabinetsbay/site/issues/105) */ function l3():?C {return dfc($this, function() {return df_category_ancestor_at_level($this->getCurrentCategory(), 3);});}