Source of file ContentUpdateHandler.php
Size: 0,564 Bytes - Last Modified: 2021-12-23T10:34:18+00:00
/var/www/docs.ssmods.com/process/src/src/Handler/ContentUpdateHandler.php
123456789101112131415161718192021222324 | <?php namespace SilverStripe\Gatsby\Handler; use SilverStripe\EventDispatcher\Event\EventContextInterface; use SilverStripe\EventDispatcher\Event\EventHandlerInterface; use SilverStripe\Headless\Model\Webhook; class ContentUpdateHandler implements EventHandlerInterface { /** * @param EventContextInterface $context */ public function fire(EventContextInterface $context): void { $hooks = Webhook::get()->filter('Event', Webhook::EVENT_PREVIEW); foreach ($hooks as $hook) { $hook->invoke(); } } } |