class UIkitViews in UIkit Components 8.2
Same name and namespace in other branches
- 8.3 uikit_views/src/UIkitViews.php \Drupal\uikit_views\UIkitViews
- 8 uikit_views/src/UIkitViews.php \Drupal\uikit_views\UIkitViews
Class UIkitViews
Hierarchy
- class \Drupal\uikit_views\UIkitViews
Expanded class hierarchy of UIkitViews
2 files declare their use of UIkitViews
- uikit_views.module in uikit_views/
uikit_views.module - UIkit Views.
- uikit_views.theme.inc in uikit_views/
includes/ uikit_views.theme.inc - Preprocessors and helper functions to make theming easier.
File
- uikit_views/
src/ UIkitViews.php, line 11
Namespace
Drupal\uikit_viewsView source
class UIkitViews {
/**
* Returns the theme hook definition information for UIkit Views.
*/
public static function getThemeHooks() {
$hooks['uikit_view_accordion'] = [
'preprocess functions' => [
'template_preprocess_uikit_view_accordion',
],
'file' => 'includes/uikit_views.theme.inc',
];
$hooks['uikit_view_grid'] = [
'preprocess functions' => [
'template_preprocess_uikit_view_grid',
],
'file' => 'includes/uikit_views.theme.inc',
];
$hooks['uikit_view_list'] = [
'preprocess functions' => [
'template_preprocess_uikit_view_list',
],
'file' => 'includes/uikit_views.theme.inc',
];
$hooks['uikit_view_table'] = [
'preprocess functions' => [
'template_preprocess_views_view_table',
'template_preprocess_uikit_view_table',
],
'file' => 'includes/uikit_views.theme.inc',
];
return $hooks;
}
/**
* Get unique element id.
*
* @param \Drupal\views\ViewExecutable $view
* A ViewExecutable object.
*
* @return string
* A unique id for an HTML element.
*/
public static function getUniqueId(ViewExecutable $view) {
$id = $view->storage
->id() . '-' . $view->current_display;
return Html::getUniqueId('views-uikit-' . $id);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UIkitViews:: |
public static | function | Returns the theme hook definition information for UIkit Views. | |
UIkitViews:: |
public static | function | Get unique element id. |