LogViewsData.php in Log entity 8
Same filename in this branch
Namespace
Drupal\log\EntityFile
src/Entity/LogViewsData.phpView source
<?php
namespace Drupal\log\Entity;
use Drupal\views\EntityViewsData;
use Drupal\views\EntityViewsDataInterface;
/**
* Provides Views data for Log entities.
*/
class LogViewsData extends EntityViewsData implements EntityViewsDataInterface {
/**
* {@inheritdoc}
*/
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;
}
}
Classes
Name | Description |
---|---|
LogViewsData | Provides Views data for Log entities. |