class AutomaticCropProviders in Crop API 8.2
Collects "Automatic crop" providers.
Hierarchy
- class \Drupal\crop\Events\AutomaticCropProviders extends \Symfony\Component\EventDispatcher\Event
 
Expanded class hierarchy of AutomaticCropProviders
1 file declares its use of AutomaticCropProviders
- CropEffect.php in src/
Plugin/ ImageEffect/ CropEffect.php  
File
- src/
Events/ AutomaticCropProviders.php, line 10  
Namespace
Drupal\crop\EventsView source
class AutomaticCropProviders extends Event {
  /**
   * Automatic Crop provider list.
   *
   * @var array
   */
  protected $providers = [];
  /**
   * Adds provider.
   *
   * @param array $provider
   *   Register provider to providers list.
   */
  public function registerProvider(array $provider) {
    $this->providers[key($provider)] = current($provider);
  }
  /**
   * Sets automatic crop providers.
   *
   * @param array $providers
   *   List of automatic crop providers.
   */
  public function setProviders(array $providers) {
    $this->providers = $providers;
  }
  /**
   * Gets automatic crop providers.
   *
   * @return array
   *   List of providers.
   */
  public function getProviders() {
    return $this->providers;
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            AutomaticCropProviders:: | 
                  protected | property | Automatic Crop provider list. | |
| 
            AutomaticCropProviders:: | 
                  public | function | Gets automatic crop providers. | |
| 
            AutomaticCropProviders:: | 
                  public | function | Adds provider. | |
| 
            AutomaticCropProviders:: | 
                  public | function | Sets automatic crop providers. |