original_string: 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
          ));
      }
code: 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
          ));
      }
code_tokens: 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 ) ) ; }
docstring: Log a record being unpublished.
docstring_tokens: Log a record being unpublished .