public function ReplicationViewsData::getViewsData in Deploy - Content Staging 8
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- src/
Entity/ ReplicationViewsData.php, line 16
Class
- ReplicationViewsData
- Provides Views data for Replication entities.
Namespace
Drupal\deploy\EntityCode
public function getViewsData() {
$data = parent::getViewsData();
$data['replication']['table']['base'] = [
'field' => 'id',
'title' => $this
->t('Deployment'),
'help' => $this
->t('The Replication ID.'),
];
return $data;
}