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