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