Commit d3c954d9 authored by jensschuppe's avatar jensschuppe
Browse files

[cmrf_views] Add token support to Views dataset params field

parent 0fe67c68
......@@ -91,6 +91,11 @@ class CMRFDatasetForm extends EntityForm {
'#required' => FALSE,
];
// Provide a token browser.
$form['token_tree'] = [
'#theme' => 'token_tree_link',
];
return $form;
}
......
......@@ -167,7 +167,7 @@ class API extends QueryPluginBase {
// Set the parameters from the dataset params options.
if (!empty($dataset_params)) {
foreach ($dataset_params as $key => $value) {
$parameters[$key] = $value;
$parameters[$key] = \Drupal::token()->replace($value);
}
}
......
Supports Markdown
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