public function ConvolutionImageEffect::defaultConfiguration in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/ConvolutionImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\ConvolutionImageEffect::defaultConfiguration()
- 8.2 src/Plugin/ImageEffect/ConvolutionImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\ConvolutionImageEffect::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ImageEffectBase::defaultConfiguration
File
- src/
Plugin/ ImageEffect/ ConvolutionImageEffect.php, line 24
Class
- ConvolutionImageEffect
- Filter image using convolution.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'kernel' => [
[
0,
0,
0,
],
[
0,
0,
0,
],
[
0,
0,
0,
],
],
'divisor' => 0,
'offset' => 0,
'label' => '',
] + parent::defaultConfiguration();
}