Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractMapper.php
Go to the documentation of this file.
1 <?php
11 
16 abstract class AbstractMapper implements MapperInterface
17 {
25  protected function _hasValue($key, $target)
26  {
27  if (false == is_array($target)) {
28  return false;
29  }
30 
31  $paths = explode('/', $key);
32  foreach ($paths as $path) {
33  if (array_key_exists($path, $target)) {
35  } else {
36  return false;
37  }
38  }
39  return true;
40  }
41 }
$target
Definition: skip.phtml:8
$paths
Definition: _bootstrap.php:83