LogViewsData.php in Log entity 8
Same filename in this branch
Same filename and directory in other branches
Contains \Drupal\log\Entity\Log.
Namespace
Drupal\logFile
src/LogViewsData.phpView source
<?php
/**
* @file
* Contains \Drupal\log\Entity\Log.
*/
namespace Drupal\log;
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']['log_bulk_form'] = array(
'title' => t('Log bulk operations form'),
'help' => t('Add a form element that lets you run operations on multiple log entities.'),
'field' => array(
'id' => 'log_bulk_form',
),
);
return $data;
}
}
Classes
Name | Description |
---|---|
LogViewsData | Provides Views data for Log entities. |