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