Commit c5cecfde authored by alexpott's avatar alexpott

Issue #1898456 by joelpittet: Common_test().module - Convert theme_ functions to Twig.

parent e89fbf33
......@@ -249,17 +249,11 @@ function common_test_theme() {
return array(
'common_test_foo' => array(
'variables' => array('foo' => 'foo', 'bar' => 'bar'),
'template' => 'common-test-foo',
),
);
}
/**
* Provides a theme function for drupal_render().
*/
function theme_common_test_foo($variables) {
return $variables['foo'] . $variables['bar'];
}
/**
* Implements hook_library_info_alter().
*/
......
{#
/**
* @file
* Default theme implementation for the common test foo.
*
* Available variables:
* - foo: foo.
* - bar: bar.
*
* @see template_preprocess()
*
* @ingroup themeable
*/
#}
{{ foo }}{{ bar -}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment