MessageViewsData.php

Namespace

Drupal\tmgmt\Entity\ViewsData

File

src/Entity/ViewsData/MessageViewsData.php
View source
<?php

namespace Drupal\tmgmt\Entity\ViewsData;

use Drupal\views\EntityViewsData;

/**
 * Provides the views data for the message entity type.
 */
class MessageViewsData extends EntityViewsData {

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['tmgmt_message']['message']['field']['id'] = 'tmgmt_message';
    return $data;
  }

}

Classes

Namesort descending Description
MessageViewsData Provides the views data for the message entity type.