- Issue created by @Liam Morland
- Assigned to samit.310@gmail.com
- Status changed to Needs work
over 1 year ago 10:03am 9 August 2023 - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:35am 9 August 2023 - 🇮🇳India samit.310@gmail.com
Hi @Liam Morland ,
I checked it and i found a similar function as you mentioned
public function getFlagEntityCount(FlagInterface $flag);
Defined in the same fileFlagCountManager
.
The only difference is it takesflag
instance as a argument not stringflag_id
.I guess we can use getFlagEntityCount function.
Thanks
Samit K. - 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
::getFlagEntityCount()
gives the total number of flags not the number on a particular entity. - last update
over 1 year ago 46 pass - 🇮🇳India samit.310@gmail.com
Hi Liam Morland,
Function
getFlagCounts
added, Please review.Function
getFlagCounts
takes 2 arguments $flag and $entity object, $entity object is optional here.Thanks
Samit K. - Status changed to Needs work
about 2 months ago 6:35am 12 March 2025 - Merge request !132Issue #3376688: Create FlagCountManagerInterface::getFlagCounts() → (Open) created by Liam Morland
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
Merge request created with the patch in #5.
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
I'm not currently working on the project that I needed this for, so I won't be able to write a test for it quickly.