Adding Id To Css With Registercssfile

I need something like this




<link href="/css/cian.css" type="text/css" media="screen" id="pagestyle"/>



but how to add id attribute with registerCssFile?!

registerCssFile accepts an $options array as a third parameter to parse it into html attributes.

Please note, configuring an asset bundle you may use $cssOptions array to pass html attributes to registerCssFile.

thanks for the answer but the i’m using 1.14 version and it dosen’t have third parameter

Ah, I see. There’s registerLinkTag method, it should work for you.

It works. Thanks again :)