Skip to content
Snippets Groups Projects
Commit e2949882 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1963764 by widukind, pwieck: Convert theme_views_view_mapping_test() to Twig.

parent e8659599
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
{#
/**
* @file
* Default theme implementation for testing the mapping row style.
*
* Available variables:
* - element: The view content.
*
* @see template_preprocess_views_view_mapping_test()
*
* @ingroup themeable
*/
#}
{{ element }}
......@@ -67,7 +67,15 @@ function views_test_data_preprocess_views_view_table(&$variables) {
}
/**
* Implements hook_preprocess_HOOK() for theme_views_view_mapping_test().
* Prepares variables for the mapping row style test templates.
*
* Default template: views-view-mapping-test.html.twig.
*
* @param array $variables
* An associative array containing:
* - rows: A list of view rows.
* - options: Various view options, including the row style mapping.
* - view: The view object.
*/
function template_preprocess_views_view_mapping_test(&$variables) {
$variables['element'] = array();
......@@ -114,10 +122,3 @@ function template_preprocess_views_view_mapping_test(&$variables) {
}
}
}
/**
* Returns HTML for the Mapping Test style.
*/
function theme_views_view_mapping_test($variables) {
return drupal_render($variables['element']);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment