We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4319014 commit df71c1fCopy full SHA for df71c1f
src/view/frontend/templates/script/rumvision.phtml
@@ -1,13 +1,15 @@
1
<?php
2
3
+/** @var Template $block */
4
/** @var Escaper $escaper */
-/** @var Rumvision $viewModel */
5
6
use Elgentos\Rumvision\ViewModel\Rumvision;
7
+use Magento\Framework\Escaper;
8
+use Magento\Framework\View\Element\Template;
9
-$viewModel = $this->getData('rumvision_view_model');
-
10
-if (!$viewModel->shouldIncludeScript()) {
+/** @var Rumvision $viewModel */
11
+$viewModel = $block->getData('rumvision_view_model');
12
+if (! $viewModel->shouldIncludeScript()) {
13
return;
14
}
15
?>
0 commit comments