You are here

public function MessageViewsData::getViewsData in Translation Management Tool 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/ViewsData/MessageViewsData.php, line 15

Class

MessageViewsData
Provides the views data for the message entity type.

Namespace

Drupal\tmgmt\Entity\ViewsData

Code

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