public static function UIkitComponents::getUIkitAsset in UIkit Components 7.2
Retrieves individual UIkit CDN asset using the UIkit::getCdnAsset() method.
Parameters
string $component: The component to retrieve CDN assets for.
1 call to UIkitComponents::getUIkitAsset()
- template_preprocess_uikit_view_accordion in uikit_views/
templates/ uikit_views.theme.inc - Prepares variables for UIkit Accordion templates.
File
- src/
UIkitComponents.php, line 18
Class
- UIkitComponents
- Provides helper functions for the UIkit Components module.
Namespace
Drupal\uikit_componentsCode
public static function getUIkitAsset($component = NULL) {
if (!path_is_admin(current_path()) || self::isAdminThemeUIkitSubtheme()) {
UIkit::getCdnAsset($component);
}
}