function uikit_views_load_uikit_assets in UIkit Components 7.2
Loads UIkit CSS and JS assets.
Parameters
string $component: The additional component assets to load. If this is omitted, only the UIkit core assets will be loaded if the admin theme is not a UIkit sub-theme.
Deprecated
in UIkit Components 7.x-2.2, will be removed before 7.x-2.5. Use \Drupal\uikit_components\UIkitComponents::getUIkitAsset();
See also
https://www.drupal.org/node/2893283
File
- uikit_views/
templates/ uikit_views.theme.inc, line 439 - Preprocessors and helper functions to make theming easier.
Code
function uikit_views_load_uikit_assets($component = NULL) {
if (!is_admin_theme_uikit_subtheme()) {
uikit_get_cdn_assets();
}
if ($component) {
uikit_get_cdn_asset($component);
}
}