Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExcludeList.php
Go to the documentation of this file.
1 <?php
7 
16 {
20  private $configs;
21 
25  public function __construct(array $configs = [])
26  {
27  $this->configs = $configs;
28  }
29 
37  public function isPresent($path)
38  {
39  return !empty($this->configs[$path]);
40  }
41 
48  public function get()
49  {
50  return array_keys(
51  array_filter(
52  $this->configs,
53  function ($value) {
54  return filter_var($value, FILTER_VALIDATE_BOOLEAN);
55  }
56  )
57  );
58  }
59 }
$value
Definition: gender.phtml:16