You are here

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;

/**
 * Provides Views data for Replication entities.
 */
class ReplicationViewsData extends EntityViewsData implements EntityViewsDataInterface {

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

}

Classes

Namesort descending Description
ReplicationViewsData Provides Views data for Replication entities.