WorkspacePointerViewsData.php in Workspace 8        
                          
                  
                        
  
  
  
  
  
File
  src/Entity/WorkspacePointerViewsData.php
  
    View source  
  <?php
namespace Drupal\workspace\Entity;
use Drupal\views\EntityViewsData;
use Drupal\views\EntityViewsDataInterface;
class WorkspacePointerViewsData extends EntityViewsData implements EntityViewsDataInterface {
  
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['workspace_pointer']['table']['base'] = [
      'field' => 'id',
      'title' => $this
        ->t('Workspace pointer'),
      'help' => $this
        ->t('The Workspace pointer ID.'),
    ];
    return $data;
  }
}