/** * On after unpublish, get changes and hook into underlying * functionality */ function onAfterUnpublish($page) { // Get the affected URLs $this->cachePublisher->clearDynamicCacheFor($this->owner); $this->cachePublisher->unpublishObject($this->owner); }