Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase 9e8d4f74cf7531be3c7a2206bd16664dbb05047e
Use ViewFactory for building children of entityviews
This change introduces ViewFactory methods for creating entitytermsview,
sitelinkgrouplistview and statementgrouplistview widgets. These methods are
passed to the different entityviews so that they can create the widgets
without having to pass them all their dependencies.
It improves separation between the entityviews and their immediate children,
since the entityviews don't have to know how to construct the child views.
It also allows to inject different implementations, for example in tests.
In more expressive type systems, this would have been implemented by having
three single-method interfaces (EntityTermsViewFactory,
SitelinkGroupListViewFactory, StatementGroupListViewFactory) and having
the ViewFactory implementing all three of them.
This is a first step for T75380.