public function onAfterUnpublish()
    {
        $member = Security::getCurrentUser();
        if (!$member || !$member->exists()) {
            return false;
        }

        $this->getAuditLogger()->info(sprintf(
            '"%s" (ID: %s) unpublished %s "%s" (ID: %s)',
            $member->Email ?: $member->Title,
            $member->ID,
            $this->owner->singular_name(),
            $this->owner->Title,
            $this->owner->ID
        ));
    }
public function onAfterUnpublish()
    {
        $member = Security::getCurrentUser();
        if (!$member || !$member->exists()) {
            return false;
        }

        $this->getAuditLogger()->info(sprintf(
            '"%s" (ID: %s) unpublished %s "%s" (ID: %s)',
            $member->Email ?: $member->Title,
            $member->ID,
            $this->owner->singular_name(),
            $this->owner->Title,
            $this->owner->ID
        ));
    }
public function onAfterUnpublish ( ) { $ member = Security :: getCurrentUser ( ) ; if ( ! $ member || ! $ member -> exists ( ) ) { return false ; } $ this -> getAuditLogger ( ) -> info ( sprintf ( '"%s" (ID: %s) unpublished %s "%s" (ID: %s)' , $ member -> Email ? : $ member -> Title , $ member -> ID , $ this -> owner -> singular_name ( ) , $ this -> owner -> Title , $ this -> owner -> ID ) ) ; }
Log a record being unpublished.
Log a record being unpublished .