protected function ImageStyleConfiguration::style_sanitize in Configuration Management 7.2
Remove unnecessary keys for export.
1 call to ImageStyleConfiguration::style_sanitize()
- ImageStyleConfiguration::prepareBuild in lib/
Drupal/ configuration/ Config/ ImageStyleConfiguration.php - Implements Drupal\configuration\Config\Configuration::prepareBuild().
File
- lib/
Drupal/ configuration/ Config/ ImageStyleConfiguration.php, line 57 - Definition of Drupal\configuration\Config\ImageStyleConfiguration.
Class
Namespace
Drupal\configuration\ConfigCode
protected function style_sanitize(&$style, $child = FALSE) {
$omit = $child ? array(
'isid',
'ieid',
) : array(
'isid',
'ieid',
'module',
);
if (is_array($style)) {
foreach ($style as $k => $v) {
if (in_array($k, $omit, TRUE)) {
unset($style[$k]);
}
elseif (is_array($v)) {
$this
->style_sanitize($style[$k], TRUE);
}
}
}
}