class UIkitComponents in UIkit Components 7.3
Same name and namespace in other branches
- 8.3 src/UIkitComponents.php \Drupal\uikit_components\UIkitComponents
- 8 src/UIkitComponents.php \Drupal\uikit_components\UIkitComponents
- 8.2 src/UIkitComponents.php \Drupal\uikit_components\UIkitComponents
- 7.2 src/UIkitComponents.php \Drupal\uikit_components\UIkitComponents
Provides helper functions for the UIkit Components module.
Hierarchy
- class \Drupal\uikit_components\UIkitComponents
Expanded class hierarchy of UIkitComponents
File
- src/
UIkitComponents.php, line 8
Namespace
Drupal\uikit_componentsView source
class UIkitComponents {
/**
* Determines whether the admin theme is a UIkit sub-theme.
*
* @return bool
* Returns TRUE if the admin theme is a UIkit sub-theme, otherwise returns
* FALSE.
*/
private function isAdminThemeUIkitSubtheme() {
$admin_theme = variable_get('admin_theme', 'none');
$admin_theme_info_file = drupal_get_path('theme', $admin_theme) . "/{$admin_theme}.info";
$admin_theme_info = drupal_parse_info_file($admin_theme_info_file);
if (isset($admin_theme_info['base theme']) && $admin_theme_info['base theme'] == 'uikit') {
return TRUE;
}
else {
return FALSE;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UIkitComponents:: |
private | function | Determines whether the admin theme is a UIkit sub-theme. |