comments: add isPinned() method

This commit is contained in:
Mathieu Jaumotte 2021-12-13 16:42:41 +01:00
parent f8071d32c0
commit f4396459a0

View File

@ -158,4 +158,9 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
return $this;
}
public function isPinned(): bool
{
return $this->getAccompanyingPeriod()->getPinnedComment() === $this;
}
}