public function CropInterface::setSize in Crop API 8
Same name and namespace in other branches
- 8.2 src/CropInterface.php \Drupal\crop\CropInterface::setSize()
Sets crop's size.
Parameters
int $width: Crop's width.
int $height: Crop's height.
Return value
\Drupal\crop\CropInterface Crop object this is being called on.
1 method overrides CropInterface::setSize()
- Crop::setSize in src/
Entity/ Crop.php - Sets crop's size.
File
- src/
CropInterface.php, line 53
Class
- CropInterface
- Provides an interface defining the crop entity.
Namespace
Drupal\cropCode
public function setSize($width, $height);