You are here

LogViewsData.php in Log entity 2.x

Same filename and directory in other branches
  1. 8 src/LogViewsData.php

Namespace

Drupal\log

File

src/LogViewsData.php
View source
<?php

namespace Drupal\log;

use Drupal\entity\EntityViewsData;

/**
 * Provides views data for the file entity type.
 */
class LogViewsData extends EntityViewsData {

  /**
   * {@inheritdoc}
   */
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['log_field_data']['timestamp']['sort']['id'] = 'log_standard';
    $data['log_field_data']['timestamp']['field']['id'] = 'log_field';
    return $data;
  }

}

Classes

Namesort descending Description
LogViewsData Provides views data for the file entity type.