public static function DefaultStubCleanup::getSubscribedEvents in Acquia Content Hub 8.2
Get subscribed events and add onStubsCleanup for default stubs.
Return value
array Array of $events.
File
- src/
EventSubscriber/ CleanupStubs/ DefaultStubCleanup.php, line 22
Class
- DefaultStubCleanup
- Cleans up default stubs after import.
Namespace
Drupal\acquia_contenthub\EventSubscriber\CleanupStubsCode
public static function getSubscribedEvents() {
$events = [];
$events[AcquiaContentHubEvents::CLEANUP_STUBS][] = 'onStubsCleanup';
return $events;
}