You are here

public function WatermarkImageEffect::defaultConfiguration in Image Effects 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageEffect/WatermarkImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\WatermarkImageEffect::defaultConfiguration()
  2. 8.2 src/Plugin/ImageEffect/WatermarkImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\WatermarkImageEffect::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ImageEffectBase::defaultConfiguration

File

src/Plugin/ImageEffect/WatermarkImageEffect.php, line 81

Class

WatermarkImageEffect
Class WatermarkImageEffect.

Namespace

Drupal\image_effects\Plugin\ImageEffect

Code

public function defaultConfiguration() {
  return [
    'watermark_image' => '',
    'watermark_width' => NULL,
    'watermark_height' => NULL,
    'placement' => 'center-center',
    'x_offset' => 0,
    'y_offset' => 0,
    'opacity' => 100,
  ] + parent::defaultConfiguration();
}