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

Breadcrumb

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

function Crop::arguments

Overrides ImageToolkitOperationBase::arguments

File

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

Class

Crop
Defines GD2 Crop operation.

Namespace

Drupal\system\Plugin\ImageToolkit\Operation\gd

Code

protected function arguments() {
    return [
        'x' => [
            'description' => 'The starting x offset at which to start the crop, in pixels',
        ],
        'y' => [
            'description' => 'The starting y offset at which to start the crop, in pixels',
        ],
        'width' => [
            'description' => 'The width of the cropped area, in pixels',
            'required' => FALSE,
            'default' => NULL,
        ],
        'height' => [
            'description' => 'The height of the cropped area, in pixels',
            'required' => FALSE,
            'default' => NULL,
        ],
    ];
}

API Navigation

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