mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
comments: add isPinned() method
This commit is contained in:
@@ -158,4 +158,9 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isPinned(): bool
|
||||
{
|
||||
return $this->getAccompanyingPeriod()->getPinnedComment() === $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user