function ImageEffectBase::setConfiguration
Same name in other branches
- 9 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setConfiguration()
- 8.9.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setConfiguration()
- 10 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::setConfiguration()
Overrides ConfigurableInterface::setConfiguration
1 call to ImageEffectBase::setConfiguration()
- ImageEffectBase::__construct in core/
modules/ image/ src/ ImageEffectBase.php
File
-
core/
modules/ image/ src/ ImageEffectBase.php, line 142
Class
- ImageEffectBase
- Provides a base class for image effects.
Namespace
Drupal\imageCode
public function setConfiguration(array $configuration) {
$configuration += [
'data' => [],
'uuid' => '',
'weight' => '',
];
$this->configuration = $configuration['data'] + $this->defaultConfiguration();
$this->uuid = $configuration['uuid'];
$this->weight = $configuration['weight'];
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.