v1/vendor/chi-teck/drupal-code-generator/templates/hook/css_alter.twig

9 lines
294 B
Twig

/**
* Implements hook_css_alter().
*/
function {{ machine_name }}_css_alter(&$css, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
// Remove defaults.css file.
$file_path = \Drupal::service('extension.list.module')->getPath('system') . '/defaults.css';
unset($css[$file_path]);
}