public function CropEffect::getAutomaticCropProvidersList in Crop API 8.2
Collect automatic crop providers.
Return value
array All provider
1 call to CropEffect::getAutomaticCropProvidersList()
- CropEffect::__construct in src/
Plugin/ ImageEffect/ CropEffect.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
File
- src/
Plugin/ ImageEffect/ CropEffect.php, line 265
Class
- CropEffect
- Crops an image resource.
Namespace
Drupal\crop\Plugin\ImageEffectCode
public function getAutomaticCropProvidersList() {
$event = new AutomaticCropProviders();
$this->eventDispatcher
->dispatch(Events::AUTOMATIC_CROP_PROVIDERS, $event);
return $event
->getProviders();
}