/** * @param BaseObject $object * @param BatchJob $raisedJob * @return bool true if should continue to the next consumer */ public function objectDeleted(BaseObject $object, BatchJob $raisedJob = null) { if ($object instanceof asset && EdgeCastPlugin::isAllowedPartner($object->getPartnerId())) { self::purgeAssetFromEdgeCast($object); } if ($object instanceof entry && EdgeCastPlugin::isAllowedPartner($object->getPartnerId())) { self::purgeEntryFromEdgeCast($object); } return true; }