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()
Same name and namespace in other branches
  1. 2.x src/LogViewsData.php \Drupal\log\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/LogViewsData.php, line 20
Contains \Drupal\log\Entity\Log.

Class

LogViewsData
Provides Views data for Log entities.

Namespace

Drupal\log

Code

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;
}