Im working on a custom module which loads a CSS file:
$content['#attached']['css'] = array(
path_to_theme() . '/new.css',
);
How can I change the weight of the file so that its loaded after the other CSS files? I thought it would be something like this:
$content['#attached']['css'] = array(
path_to_theme() . '/new.css',
'weight' => 1000,
);
Or this:
$content['#attached']['css'] = array(
path_to_theme() . '/new.css',
'#weight' => 1000,
);
!important
in CSS, 99% of the time it means the developer wasn't quite sure what they were doing