function Failing::execute

Same name in other branches
  1. 11.x core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/Failing.php \Drupal\image_test\Plugin\ImageToolkit\Operation\test\Failing::execute()

Overrides OperationBase::execute

File

core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/Operation/test/Failing.php, line 23

Class

Failing
An image toolkit operation that throws a \RuntimeException.

Namespace

Drupal\image_test\Plugin\ImageToolkit\Operation\test

Code

public function execute(array $arguments) {
    throw new \RuntimeException('Ahem, this image operation failed');
}

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