Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Condition.php
Go to the documentation of this file.
1 <?php
7 
11 class Condition
12 {
16  private $conditions;
17 
21  public function __construct(array $conditions)
22  {
23  $this->conditions = $conditions;
24  }
25 
34  public function isVisible(array $arguments)
35  {
36  foreach ($this->conditions as $condition) {
37  if (!$condition->isVisible($arguments[$condition->getName()]['arguments'])) {
38  return false;
39  }
40  }
41 
42  return true;
43  }
44 }
$arguments