You are here

public function AutomaticCropProviders::registerProvider in Crop API 8.2

Adds provider.

Parameters

array $provider: Register provider to providers list.

File

src/Events/AutomaticCropProviders.php, line 25

Class

AutomaticCropProviders
Collects "Automatic crop" providers.

Namespace

Drupal\crop\Events

Code

public function registerProvider(array $provider) {
  $this->providers[key($provider)] = current($provider);
}