getConfig()->get( 'Logo' ); $styles = parent::getStyles( $context ); $styles['all'][] = '.mw-wiki-logo { background-image: ' . CSSMin::buildUrlValue( $logo ) . '; }'; return $styles; } /** * @param $context ResourceLoaderContext * @return bool */ public function isKnownEmpty( ResourceLoaderContext $context ) { // Regardless of whether the files are specified, we always // provide mw-wiki-logo styles. return false; } /** * @param $context ResourceLoaderContext * @return int|mixed */ public function getModifiedTime( ResourceLoaderContext $context ) { $parentMTime = parent::getModifiedTime( $context ); return max( $parentMTime, $this->getHashMtime( $context ) ); } /** * @param $context ResourceLoaderContext * @return string: Hash */ public function getModifiedHash( ResourceLoaderContext $context ) { $logo = $this->getConfig()->get( 'Logo' ); return md5( parent::getModifiedHash( $context ) . $logo ); } }