You are here

public function LogViewsData::getViewsData in Log entity 8

Same name in this branch
  1. 8 src/LogViewsData.php \Drupal\log\LogViewsData::getViewsData()
  2. 8 src/Entity/LogViewsData.php \Drupal\log\Entity\LogViewsData::getViewsData()

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/LogViewsData.php, line 16

Class

LogViewsData
Provides Views data for Log entities.

Namespace

Drupal\log\Entity

Code

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