You are here

public static function AutomatedCropProvider::getSubscribedEvents in Automated Crop 8

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

modules/automated_crop_crop_provider/src/EventSubscriber/AutomatedCropProvider.php, line 32

Class

AutomatedCropProvider
Subscribe each automated crop providers as automatic crop api provider.

Namespace

Drupal\automated_crop_crop_provider\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    Events::AUTOMATIC_CROP_PROVIDERS => [
      [
        'addProvider',
        100,
      ],
    ],
  ];
}