Skip to content
Snippets Groups Projects

Issue #3268897: Draggable Views breaks first column output if field contains a <drupal-placeholder> like a flag link

Open Issue #3268897: Draggable Views breaks first column output if field contains a <drupal-placeholder> like a flag link
+ 3
3
@@ -107,14 +107,14 @@ function draggableviews_preprocess_views_view_table(&$variables) {
break;
}
}
if (!empty($first_column)) {
// Indent the first column that is not the draggableviews field.
$columns_title = $row['columns'][$first_column]['content'][0]['field_output']['#markup'] ?? '';
$indent = [
$variables['rows'][$key]['columns'][$first_column]['content'][0]['draggableviews_indent'] = [
'#theme' => 'indentation',
'#size' => $draggableviews->getDepth($key),
'#weight' => -100,
];
$variables['rows'][$key]['columns'][$first_column]['content'][0]['field_output']['#markup'] = (string) (\Drupal::service('renderer')->render($indent) . $columns_title);
}
}
Loading