Various Yii 3.0 related documentation
Unlike regular classes, widgets are used in view templates, so syntax is important. It should be both easy to write, easy to read and not too verbose because similar constructs are meant to be used over and over again.
Widgets aren’t postfixed or prefixed.
Inheritance is allowed with some restrictions:
Widgets should:
The Method that corresponds to boolean attribute should be named after the attribute and accept a boolean flag argument.