So we add the core ones (href in this instance for the first parameter if passed by string) and then allow the array syntax for additional parameters that each developer needs.
Looking at the sample, when there is an argument it is a string, but at another time it is an array.
string javascriptInclude ([array $parameters], [boolean $local])
So, I looked for what elements can be specified in $parameters, but it didn't seem to be specified.
And, I thought it was not mandatory because it was [], so I wondered what the default is.
Of course, if try each one, I'll know what is the default, but I'm hesitant to try everything, and I wanted to have a documented thing.
Were you expecting something like this:
linkTo($href, $class, $othertag, $title, ....) ?
No.
I didn't notice it because I didn't read the v4.0 documentation, but I was expecting a description like that in the API description.
If it is clear what you want to do, it's faster to search from the API Index, but in "mixed $parameters" I don't know the specific thing and I will look for an explanation somewhere.
So we add the core ones (href in this instance for the first parameter if passed by string) and then allow the array syntax for additional parameters...
As I gradually realized that was the case, I thought I would have overlooked somewhere written. So I wanted to know where it was written.