function ImageToolkitOperationBase::execute

Same name in other branches
  1. 9 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php \Drupal\Core\ImageToolkit\ImageToolkitOperationBase::execute()
  2. 8.9.x core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php \Drupal\Core\ImageToolkit\ImageToolkitOperationBase::execute()
  3. 10 core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php \Drupal\Core\ImageToolkit\ImageToolkitOperationBase::execute()

Performs the actual manipulation on the image.

Image toolkit operation implementers must implement this method. This method is responsible for actually performing the operation on the image. When this method gets called, the implementer may assume all arguments, also the optional ones, to be available, validated and corrected.

Parameters

array $arguments: An associative array of arguments to be used by the toolkit operation.

Return value

bool TRUE if the operation was performed successfully, FALSE otherwise.

Throws

\RuntimeException If the operation can not be performed.

1 call to ImageToolkitOperationBase::execute()
ImageToolkitOperationBase::apply in core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php
Applies a toolkit specific operation to an image.
8 methods override ImageToolkitOperationBase::execute()
Convert::execute in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Convert.php
Performs the actual manipulation on the image.
CreateNew::execute in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/CreateNew.php
Performs the actual manipulation on the image.
Crop::execute in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Crop.php
Performs the actual manipulation on the image.
Desaturate::execute in core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Desaturate.php
Performs the actual manipulation on the image.
OperationBase::execute in core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/OperationBase.php
Performs the actual manipulation on the image.

... See full list

File

core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationBase.php, line 191

Class

ImageToolkitOperationBase
Provides a base class for image toolkit operation plugins.

Namespace

Drupal\Core\ImageToolkit

Code

protected abstract function execute(array $arguments);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.