ViewsData.php in Workbench Access 8
File
src/ViewsData.php
View source
<?php
namespace Drupal\workbench_access;
use Drupal\views\EntityViewsData;
class ViewsData extends EntityViewsData {
public function getViewsData() {
$data = parent::getViewsData();
$data['section_association__user_id']['entity_id']['field']['id'] = 'field';
$data['section_association__user_id']['entity_id']['field']['title'] = $this
->t('Section Association ID');
$data['section_association']['section_id']['field'] = [
'id' => 'workbench_access_section_id',
'title' => $this
->t('Section ID'),
];
$data['section_association']['section_id']['filter'] = [
'id' => 'workbench_access_section_id',
'title' => $this
->t('Section ID'),
];
return $data;
}
}
Classes
Name |
Description |
ViewsData |
Provides the workbench access views integration. |