A factory to create EntityDocumentView implementations by entity type based on callbacks.
More...
A factory to create EntityDocumentView implementations by entity type based on callbacks.
- Copyright
- GPL-2.0-or-later
- Author
- Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\Repo\ParserOutput\DispatchingEntityViewFactory::__construct |
( |
array |
$entityViewFactoryCallbacks | ) |
|
- Parameters
-
callable[] | $entityViewFactoryCallbacks | |
◆ newEntityView()
Creates a new EntityDocumentView that can display the given type of entity.
- Parameters
-
Language | $language | |
TermLanguageFallbackChain | $termFallbackChain | |
EntityDocument | $entity | |
- Exceptions
-
- Returns
- EntityDocumentView
◆ $entityViewFactoryCallbacks
Wikibase\Repo\ParserOutput\DispatchingEntityViewFactory::$entityViewFactoryCallbacks |
|
private |
The documentation for this class was generated from the following file: