Skip to content

Commit 41a1614

Browse files
committed
MAGETWO-65470: The visibility conditions improvements
add block support.
1 parent 6166537 commit 41a1614

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Backend/Model/View/Layout/Reader

1 file changed

+4
-0
lines changed

app/code/Magento/Backend/Model/View/Layout/Reader/Block.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
use Magento\Framework\View\Layout;
99
use Magento\Framework\Data\Argument\InterpreterInterface;
10+
use Magento\Framework\View\Layout\Reader\Visibility\Condition;
1011

1112
/**
1213
* Backend block structure reader with ACL support
@@ -20,13 +21,15 @@ class Block extends Layout\Reader\Block
2021
* @param Layout\Argument\Parser $argumentParser
2122
* @param Layout\ReaderPool $readerPool
2223
* @param InterpreterInterface $argumentInterpreter
24+
* @param Condition $conditionReader
2325
* @param string|null $scopeType
2426
*/
2527
public function __construct(
2628
Layout\ScheduledStructure\Helper $helper,
2729
Layout\Argument\Parser $argumentParser,
2830
Layout\ReaderPool $readerPool,
2931
InterpreterInterface $argumentInterpreter,
32+
Condition $conditionReader,
3033
$scopeType = null
3134
) {
3235
$this->attributes[] = 'acl';
@@ -35,6 +38,7 @@ public function __construct(
3538
$argumentParser,
3639
$readerPool,
3740
$argumentInterpreter,
41+
$conditionReader,
3842
$scopeType
3943
);
4044
}

0 commit comments

Comments
 (0)