Source of file LegacyManipulationsExtension.php
Size: 0,628 Bytes - Last Modified: 2021-12-23T10:04:37+00:00
/var/www/docs.ssmods.com/process/src/src/Extensions/Image/LegacyManipulationsExtension.php
123456789101112131415161718192021222324252627 | <?php /** * Extension to alias legacy image manipulations to their SS4-era method names */ namespace Restruct\Silverstripe\AdminTweaks\Extensions\Image { use SilverStripe\Core\Extension; class LegacyManipulationsExtension extends Extension { public function PaddedImage($width, $height) { return $this->owner->Pad($width, $height); } public function SetWidth($width) { return $this->owner->ScaleWidth($width); } public function SetHeight($height) { return $this->owner->ScaleHeight($height); } } } |