This is not an easy "out of the box" paginator to work with.
[s]First look at the way you can paginate here in the forum, you can jump to last page, or first page. Most frameworks built in paginator has that "out of box".
Now, however I notice the Yii2 paginator does not have that ability. How to override that to have first and last page links also. I was totally shocked when it did not show those links.[/s]
The reason it goes in an array is so that all the property over-rides can be passed to the init/create function of the class in one variable. Otherwise what order do you pass them in? What if you only want to change one property? There would need to be a whole bunch of different init() functions, and if you had two properties that were strings, which init(string x) would be called?
Also
$disabledPageCssClass public property
The CSS class for the disabled page buttons.
public string $disabledPageCssClass = 'disabled'
is showing the default value is ‘disabled’, so you don’t have to pass that in again