You are here

public function WebP::defaultConfiguration in ImageAPI Optimize WebP 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/ImageAPIOptimizeProcessor/WebP.php \Drupal\imageapi_optimize_webp\Plugin\ImageAPIOptimizeProcessor\WebP::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ImageAPIOptimizeProcessorBase::defaultConfiguration

File

src/Plugin/ImageAPIOptimizeProcessor/WebP.php, line 38

Class

WebP
Plugin annotation @ImageAPIOptimizeProcessor( id = "imageapi_optimize_webp", label = @Translation("WebP Deriver"), description = @Translation("Clone image to WebP") )

Namespace

Drupal\imageapi_optimize_webp\Plugin\ImageAPIOptimizeProcessor

Code

public function defaultConfiguration() {
  return [
    'quality' => 75,
  ];
}