@trigger_error('Calling '.__METHOD__.'() without the $component_plugin_manager argument is deprecated in drupal:10.3.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3410260',E_USER_DEPRECATED);
$deprecation_message='The %library_id% asset library is deprecated in Drupal 10.3.0 and will be removed in Drupal 11.0.0. Use the core/components.[component-id] library instead. See https://www.drupal.org/node/3410260';
// Iterate over all the components to get the CSS and JS files.
// Adding these libraries will result in the old 'sdc/my-theme--my-comp'.
returnarray_merge($libraries,[
$library_id=>[
'dependencies'=>[$library_name],
'deprecated'=>$deprecation_message,
],
]);
},
[]
);
// Alias the library sdc/all to core/components.all.
$libraries['all']=[
'dependencies'=>['core/components.all'],
'deprecated'=>'The %library_id% asset library is deprecated in Drupal 10.3.0 and will be removed in Drupal 11.0.0. Use the core/components.all library instead. See https://www.drupal.org/node/3410260',