TestProcessorAppendCharacters.php in Image Optimize (or ImageAPI Optimize) 8.2
File
tests/module/imageapi_optimize_module_test/src/Plugin/ImageAPIOptimizeProcessor/TestProcessorAppendCharacters.php
View source
<?php
namespace Drupal\imageapi_optimize_module_test\Plugin\ImageAPIOptimizeProcessor;
use Drupal\imageapi_optimize\ImageAPIOptimizeProcessorBase;
final class TestProcessorAppendCharacters extends ImageAPIOptimizeProcessorBase {
public function applyToImage($image_uri) {
return (bool) file_put_contents($image_uri, file_get_contents($image_uri) . str_repeat('1', 10));
}
}