protected function ImageStyleConfiguration::prepareBuild in Configuration Management 7.2
Implements Drupal\configuration\Config\Configuration::prepareBuild().
Overrides Configuration::prepareBuild
File
- lib/
Drupal/ configuration/ Config/ ImageStyleConfiguration.php, line 104 - Definition of Drupal\configuration\Config\ImageStyleConfiguration.
Class
Namespace
Drupal\configuration\ConfigCode
protected function prepareBuild() {
$style = image_style_load($this
->getIdentifier());
$this
->style_sanitize($style);
$this->data = $style;
// Reset the order of effects, this will help to generate always the same
// hash for image styles that have been reverted.
$this->data['effects'] = array();
if (!empty($style['effects'])) {
foreach ($style['effects'] as $effect) {
$this->data['effects'][] = $effect;
}
}
return $this;
}