mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
comments: add isPinned() method
This commit is contained in:
parent
f8071d32c0
commit
f4396459a0
@ -158,4 +158,9 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isPinned(): bool
|
||||||
|
{
|
||||||
|
return $this->getAccompanyingPeriod()->getPinnedComment() === $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user