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