Skip to content

Commit

Permalink
add method
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Aug 21, 2023
1 parent 839b015 commit 20c0fb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Events/EntrySaved.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ public function commitMessage()
{
return __('Entry saved', [], config('statamic.git.locale'));
}

public function isInitiator()
{
return $this->entry->id() === $this->initiator->id();
}
}

0 comments on commit 20c0fb2

Please sign in to comment.