@@ 536-544 (lines=9) @@ | ||
533 | } |
|
534 | $dependency->tags[] = $object->objectTag(); |
|
535 | switch ($params['object']) { |
|
536 | case 'product': |
|
537 | $viewParams = [ |
|
538 | 'product' => $object, |
|
539 | 'url' => Url::to( |
|
540 | [ |
|
541 | '@product', |
|
542 | 'model' => $object, |
|
543 | 'category_group_id' => $object->getMainCategory()->category_group_id, |
|
544 | ] |
|
545 | ) |
|
546 | ]; |
|
547 | break; |
|
@@ 548-556 (lines=9) @@ | ||
545 | ) |
|
546 | ]; |
|
547 | break; |
|
548 | default: |
|
549 | $viewParams = [ |
|
550 | 'product' => $object, |
|
551 | 'url' => Url::to( |
|
552 | [ |
|
553 | '@product', |
|
554 | 'model' => $object, |
|
555 | 'category_group_id' => $object->getMainCategory()->category_group_id, |
|
556 | ] |
|
557 | ) |
|
558 | ]; |
|
559 | break; |