MessageViewsData.php in Translation Management Tool 8
Namespace
Drupal\tmgmt\Entity\ViewsDataFile
src/Entity/ViewsData/MessageViewsData.phpView 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
Name | Description |
---|---|
MessageViewsData | Provides the views data for the message entity type. |