protected ConfigBase::validateKeys(array $data)
Validates all keys in a passed in config array structure.
array $data: Configuration array structure.
null
\Drupal\Core\Config\ConfigValueException If any key in $data in any depth contains a dot.
protected function validateKeys(array $data) { foreach ($data as $key => $value) { if (strpos($key, '.') !== FALSE) { throw new ConfigValueException("$key key contains a dot which is not supported."); } if (is_array($value)) { $this->validateKeys($value); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigBase.php/function/ConfigBase::validateKeys/8.1.x