You are here

LogViewsData.php in Log entity 8

Same filename in this branch
  1. 8 src/LogViewsData.php
  2. 8 src/Entity/LogViewsData.php
Same filename and directory in other branches
  1. 2.x src/LogViewsData.php

Namespace

Drupal\log

File

src/LogViewsData.php
View 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

Namesort descending Description
LogViewsData Provides Views data for Log entities.