protected publishStyle ( $style ) : string | ||
return | string | URL of the css style file |
protected function publishStyle($style)
{
$cs = $this->getPage()->getClientScript();
$url = $this->getAssetUrl($style . '.css');
if (!$cs->isStyleSheetFileRegistered($url)) {
$cs->registerStyleSheetFile($url, $url);
}
return $url;
}