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

Breadcrumb

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

function ScaleAndCrop::arguments

Overrides ImageToolkitOperationBase::arguments

File

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

Class

ScaleAndCrop
Defines GD2 Scale and crop operation.

Namespace

Drupal\system\Plugin\ImageToolkit\Operation\gd

Code

protected function arguments() {
    return [
        'x' => [
            'description' => 'The horizontal offset for the start of the crop, in pixels',
            'required' => FALSE,
            'default' => NULL,
        ],
        'y' => [
            'description' => 'The vertical offset for the start the crop, in pixels',
            'required' => FALSE,
            'default' => NULL,
        ],
        'width' => [
            'description' => 'The target width, in pixels',
        ],
        'height' => [
            'description' => 'The target height, in pixels',
        ],
    ];
}

API Navigation

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