diff --git a/src/Plugin/AccessControlHierarchy/Taxonomy.php b/src/Plugin/AccessControlHierarchy/Taxonomy.php index c32ff9d3..6d001694 100644 --- a/src/Plugin/AccessControlHierarchy/Taxonomy.php +++ b/src/Plugin/AccessControlHierarchy/Taxonomy.php @@ -277,6 +277,25 @@ public function viewsData(array &$data, AccessSchemeInterface $scheme) { 'field' => [ 'scheme' => $scheme->id(), 'id' => 'workbench_access_section', + 'click sortable' => TRUE, + ], + 'filter' => [ + 'field' => $id, + 'scheme' => $scheme->id(), + 'id' => 'workbench_access_section', + ], + ]; + } + if (($revision_table = $entity_type->getRevisionTable()) && ($id = $entity_type->getKey('id'))) { + $data[$revision_table]['workbench_access_section__' . $scheme->id()] = [ + 'title' => t('Workbench access @name', ['@name' => $scheme->label()]), + 'help' => t('The sections to which this content belongs in the @name scheme.', [ + '@name' => $scheme->label(), + ]), + 'field' => [ + 'scheme' => $scheme->id(), + 'id' => 'workbench_access_section', + 'click sortable' => TRUE, ], 'filter' => [ 'field' => $id,