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