diff -u b/core/modules/views/views.views.inc b/core/modules/views/views.views.inc --- b/core/modules/views/views.views.inc +++ b/core/modules/views/views.views.inc @@ -5,7 +5,6 @@ * Provide views data that isn't tied to any other module. */ -use Drupal\Component\Utility\Html; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\Sql\SqlContentEntityStorage; @@ -419,17 +418,7 @@ 'group' => $group, 'title' => $label, 'title short' => $label, - 'help' => [ - [ - '#markup' => t('Appears in:'), - '#suffix' => ' ', - ], - [ - '#theme' => 'item_list', - '#items' => $bundles_names, - '#context' => ['list_style' => 'comma-list'], - ] - ], + 'help' => t('Appears in: @bundles.', array('@bundles' => implode(', ', $bundles_names))), ); // Go through and create a list of aliases for all possible combinations of @@ -460,18 +449,7 @@ } if ($aliases) { $data[$table_alias][$field_alias]['aliases'] = $aliases; - $data[$table_alias][$field_alias]['help'][] = [ - '#prefix' => '. ', - '#markup' => t('Also known as:'), - '#suffix' => ' ', - ]; - $data[$table_alias][$field_alias]['help'][] = [ - '#theme' => 'item_list', - '#items' => $also_known, - '#context' => ['list_style' => 'comma-list'], - '#suffix' => '.', - ]; - + $data[$table_alias][$field_alias]['help'] .= ' ' . t('Also known as: !also.', array('!also' => implode(', ', $also_known))); } $keys = array_keys($field_columns); @@ -547,17 +525,7 @@ 'group' => $group, 'title' => $title, 'title short' => $title_short, - 'help' => [ - [ - '#markup' => t('Appears in:'), - '#suffix' => ' ', - ], - [ - '#theme' => 'item_list', - '#context' => ['list_style' => 'comma-list'], - '#items' => $bundles_names, - ] - ], + 'help' => t('Appears in: @bundles.', array('@bundles' => implode(', ', $bundles_names))), ); // Go through and create a list of aliases for all possible combinations of @@ -582,17 +550,9 @@ } if ($aliases) { $data[$table_alias][$column_real_name]['aliases'] = $aliases; - $data[$table_alias][$column_real_name]['help'][] = [ - '#prefix' => ' ', - '#markup' => t('Also known as:'), - '#suffix' => ' ', - ]; - $data[$table_alias][$column_real_name]['help'][] = [ - '#theme' => 'item_list', - '#items' => $also_known, - '#context' => ['list_style' => 'comma-list'], - ]; + $data[$table_alias][$column_real_name]['help'] .= ' ' . t('Also known as: !also.', array('!also' => implode(', ', $also_known))); } + $data[$table_alias][$column_real_name]['argument'] = array( 'field' => $column_real_name, 'table' => $table,