public function CropEffect::getCropTypeOptions in Crop API 8.2
Get the available cropType options list.
Return value
array The cropType options list.
1 call to CropEffect::getCropTypeOptions()
- CropEffect::buildConfigurationForm in src/
Plugin/ ImageEffect/ CropEffect.php - Form constructor.
File
- src/
Plugin/ ImageEffect/ CropEffect.php, line 198
Class
- CropEffect
- Crops an image resource.
Namespace
Drupal\crop\Plugin\ImageEffectCode
public function getCropTypeOptions() {
$options = [];
foreach ($this->typeStorage
->loadMultiple() as $type) {
$options[$type
->id()] = $type
->label();
}
return $options;
}