What is the purpose/meaning of `_single`, e.g. when used in core classes as `if ($this->_single)`
The purpose of this is to help clear something up that I'm not clear on. There's no specific proposal right now. And this is also a bit of a brain dump so may not even be discussable (is that word? - I seem to keep making up new words lately).
I'm thinking the meaning of single
has gotten confused a bit over time - there appear to be two interpretations:
- There's only one id. Period. It doesn't mean anything else.
- We were viewing/doing something in the context of a single entity, like we we're viewing a contribution and now we're doing something related to it.
The first situation is confusing because why would it require a whole other variable and separate handling, but seems to be how it's being interpreted in some places.
The second is more like how "context" is used in various places (particularly context=search), so is also confusing because it seems to duplicate it, but seems to match the uses of it in the code in some places.