PortableInfobox/includes/resourceloader/PortableInfoboxResourceLoaderModule.php

12 lines
368 B
PHP
Raw Normal View History

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