mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
[dev] add return type to SkinMinerva.getSkinStyles()
Specify the return type for getSkinStyles() and add some documentation. Change-Id: I06a77d3015ed77c2aa38d31fe8422fcb8bcaf9fd
This commit is contained in:
parent
b836141c9f
commit
0a2099930b
|
@ -897,10 +897,15 @@ class SkinMinerva extends SkinTemplate {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the needed styles for this skin
|
||||
* Provide styles required to present the server rendered page in this skin. Additional styles
|
||||
* may be loaded dynamically by the client.
|
||||
*
|
||||
* Any styles returned by this method are loaded on the critical rendering path as linked
|
||||
* stylesheets. I.e., they are required to load on the client before first paint.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function getSkinStyles() {
|
||||
protected function getSkinStyles(): array {
|
||||
$title = $this->getTitle();
|
||||
$styles = [
|
||||
'skins.minerva.base.styles',
|
||||
|
|
Loading…
Reference in a new issue