PortableInfobox/includes/resourceloader/PortableInfoboxResourceLoaderModule.php
2024-04-01 12:52:06 -06:00

16 lines
421 B
PHP

<?php
use MediaWiki\ResourceLoader\Context;
use MediaWiki\ResourceLoader\FileModule;
class PortableInfoboxResourceLoaderModule extends FileModule {
/** @inheritDoc */
protected function getLessVars( Context $context ) {
$lessVars = parent::getLessVars( $context );
$lessVars[ 'responsibly-open-collapsed'] =
(bool)$this->getConfig()->get( 'PortableInfoboxResponsiblyOpenCollapsed' );
return $lessVars;
}
}