protected function ConfigHandler::getConfigFrom in Update helper 8
Same name and namespace in other branches
- 2.x src/ConfigHandler.php \Drupal\update_helper\ConfigHandler::getConfigFrom()
 
Ensure that configuration is always array and cleaned up.
Not needed configuration parameters will be stripped.
Parameters
mixed $config_data: Configuration data that should be checked.
Return value
array Returns configuration data array if it's not empty configuration, otherwise returns empty array.
1 call to ConfigHandler::getConfigFrom()
- ConfigHandler::getConfigDiff in src/
ConfigHandler.php  - Get diff for single configuration.
 
File
- src/
ConfigHandler.php, line 333  
Class
- ConfigHandler
 - Configuration handler.
 
Namespace
Drupal\update_helperCode
protected function getConfigFrom($config_data) {
  if (empty($config_data)) {
    return [];
  }
  // Strip params that are not needed.
  foreach ($this->stripConfigParams as $param) {
    if (isset($config_data[$param])) {
      unset($config_data[$param]);
    }
  }
  return $config_data;
}