You are here

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\Entity

Code

public function getViewsData() {
  $data = parent::getViewsData();
  $data['replication']['table']['base'] = [
    'field' => 'id',
    'title' => $this
      ->t('Deployment'),
    'help' => $this
      ->t('The Replication ID.'),
  ];
  return $data;
}