diff options
Diffstat (limited to 'app/Event/ProjectFileEvent.php')
-rw-r--r-- | app/Event/ProjectFileEvent.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Event/ProjectFileEvent.php b/app/Event/ProjectFileEvent.php index 5d57e463..e1d29c48 100644 --- a/app/Event/ProjectFileEvent.php +++ b/app/Event/ProjectFileEvent.php @@ -4,4 +4,12 @@ namespace Kanboard\Event; class ProjectFileEvent extends GenericEvent { + public function getProjectId() + { + if (isset($this->container['file']['project_id'])) { + return $this->container['file']['project_id']; + } + + return null; + } } |