Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Scale.php

function Scale::arguments

Overrides Resize::arguments

File

core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Scale.php, line 23

Class

Scale
Defines GD2 Scale operation.

Namespace

Drupal\system\Plugin\ImageToolkit\Operation\gd

Code

protected function arguments() {
    return [
        'width' => [
            'description' => 'The target width, in pixels. This value is omitted then the scaling will based only on the height value',
            'required' => FALSE,
            'default' => NULL,
        ],
        'height' => [
            'description' => 'The target height, in pixels. This value is omitted then the scaling will based only on the width value',
            'required' => FALSE,
            'default' => NULL,
        ],
        'upscale' => [
            'description' => 'Boolean indicating that files smaller than the dimensions will be scaled up. This generally results in a low quality image',
            'required' => FALSE,
            'default' => FALSE,
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal