Skip to content
Snippets Groups Projects

#2929931 Add view tags on administrative list of views

Open #2929931 Add view tags on administrative list of views
2 unresolved threads
2 unresolved threads
Files
4
@@ -100,6 +100,11 @@ public function buildRow(EntityInterface $view) {
'#plain_text' => $view->get('description'),
],
],
'tags' => [
'data' => [
'#plain_text' => $view->get('tag'),
],
],
'displays' => [
'data' => [
'#theme' => 'views_ui_view_displays_list',
@@ -137,6 +142,12 @@ public function buildHeader() {
'class' => ['views-ui-description'],
],
],
'tags' => [
'data' => $this->t('Tags'),
'#attributes' => [
'class' => ['views-ui-tags'],
],
],
'displays' => [
'data' => $this->t('Displays'),
'#attributes' => [
@@ -211,12 +222,12 @@ public function render() {
'#title' => $this->t('Filter'),
'#title_display' => 'invisible',
'#size' => 60,
'#placeholder' => $this->t('Filter by view name, machine name, description, or display path'),
'#placeholder' => $this->t('Filter by view name, machine name, description, tags, or display path'),
'#attributes' => [
'class' => ['views-filter-text'],
'data-table' => '.views-listing-table',
'autocomplete' => 'off',
'title' => $this->t('Enter a part of the view name, machine name, description, or display path to filter by.'),
'title' => $this->t('Enter a part of the view name, machine name, description, tags, or display path to filter by.'),
],
];
Loading